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:
- 919 Bytes
1 | class CreateTopics < ActiveRecord::Migration |
2 | class Post < ActiveRecord::Base; end |
3 | class Topic < ActiveRecord::Base; end |
4 | def self.up |
5 | create_table :topics do |t| |
6 | t.column "forum_id", :integer |
7 | t.column "user_id", :integer |
8 | t.column "title", :string |
9 | t.column "created_at", :datetime |
10 | t.column "updated_at", :datetime |
11 | t.column "hits", :integer, :default => 0 |
12 | t.column "sticky", :boolean, :default => false |
13 | t.column "posts_count", :integer, :default => 0 |
14 | t.column "replied_at", :datetime |
15 | end |
16 | # find the old topics |
17 | Post.find(:all, :conditions => "id=topic_id").each do |old_topic| |
18 | topic=Topic.new |
19 | topic.id=old_topic.id |
20 | topic.attribute_names.each do |prop| |
21 | topic.send("#{prop}=", old_topic.send(prop)) |
22 | topic.save! |
23 | end |
24 | end |
25 | end |
26 | |
27 | def self.down |
28 | drop_table :topics |
29 | end |
30 | end |