Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 171
- Log:
Initial import of Beast 0.9 from downloaded Tarball. Beast is a Ruby
On Rails based forum application. The original tarball came from the
following location:http://s3.amazonaws.com/beast-forum/beast-0.9.tar.gz
The forum post which announced this version's availability was at:
http://beast.caboo.se/forums/1/topics/446
- Author:
- rool
- Date:
- Fri Mar 02 15:51:55 +0000 2007
- Size:
- 588 Bytes
1 | class TopicsCacheLastRepliedUser < ActiveRecord::Migration |
2 | class Post < ActiveRecord::Base; end |
3 | class Topic < ActiveRecord::Base |
4 | has_many :posts |
5 | end |
6 | def self.up |
7 | add_column "topics", "replied_by", :integer |
8 | add_column "topics", "last_post_id", :integer |
9 | Topic.find(:all).each do |topic| |
10 | next if topic.posts.count.zero? |
11 | topic.replied_by = topic.posts.last.user_id |
12 | topic.last_post_id = topic.posts.last.id |
13 | topic.save! |
14 | end |
15 | end |
16 | |
17 | def self.down |
18 | remove_column "topics", "replied_by" |
19 | remove_column "topics", "last_post_id" |
20 | end |
21 | end |