Files
codeocean/db/migrate/20141119131607_create_comments.rb

15 lines
305 B
Ruby

class CreateComments < ActiveRecord::Migration[4.2]
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