Migrate comment table

This commit is contained in:
Felix Wolff
2015-03-27 11:53:37 +01:00
parent e31675f136
commit 6e5e9a6634
2 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
class CreateComments < ActiveRecord::Migration
def change
create_table :comments do |t|
t.references :user, index: true
t.references :file, index: true
t.string :user_type
t.integer :row
t.integer :column
t.string :text
t.timestamps
end
end
end