diff options
Diffstat (limited to 'db/migrate/20140617183704_create_comments.rb')
-rw-r--r-- | db/migrate/20140617183704_create_comments.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20140617183704_create_comments.rb b/db/migrate/20140617183704_create_comments.rb new file mode 100644 index 0000000..022bae6 --- /dev/null +++ b/db/migrate/20140617183704_create_comments.rb @@ -0,0 +1,13 @@ +class CreateComments < ActiveRecord::Migration + def change + create_table :comments do |t| + t.text :content + + t.references :user_author + t.references :user_editor + t.references :blogpost + + t.timestamps null: true + end + end +end |