17 lines
336 B
Ruby
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
|