update with changes from Production branch
This commit is contained in:
17
db/migrate/20110425145717_create_comments.rb
Normal file
17
db/migrate/20110425145717_create_comments.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
class CreateComments < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :comments do |t|
|
||||
t.integer :parent_id
|
||||
t.text :body
|
||||
t.integer :flags
|
||||
t.integer :user_id
|
||||
t.string :ip_address
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :comments
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user