Files
codeocean/db/migrate/20141119131607_create_comments.rb
2015-03-27 11:53:37 +01:00

15 lines
300 B
Ruby

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