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