Migrate comment table
This commit is contained in:
14
db/migrate/20141119131607_create_comments.rb
Normal file
14
db/migrate/20141119131607_create_comments.rb
Normal 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
|
Reference in New Issue
Block a user