updated readme
This commit is contained in:
16
db/migrate/20110808220246_create_posts_table.rb
Normal file
16
db/migrate/20110808220246_create_posts_table.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
class CreatePostsTable < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :posts, :force => true do |t|
|
||||
t.string :body
|
||||
t.integer :forum_id
|
||||
t.integer :topic_id
|
||||
t.integer :user_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :posts
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user