< previous paste - next paste>
simon@diogenes:~/forum$ cat db/migrate/001_create_posts.rb
class CreatePosts < ActiveRecord::Migration
def self.up
create_table :posts do |t|
t.column :parent_id, :integer
t.column :ancestor_id, :integer
t.column :author, :string
t.column :subject, :string
t.column :body, :text
t.column :created, :datetime
t.column :modified, :datetime
t.column :hidden, :boolean
end
end
def self.down
drop_table :posts
end
end
Go to most recent paste.
(c) Copyright 2005-2011 Thomas Damgaard Nielsen.