Files
codeocean/db/migrate/20141119131607_create_comments.rb
2021-05-14 22:03:06 +02:00

17 lines
336 B
Ruby

# frozen_string_literal: true
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