retrospring/db/migrate/20141227130438_create_reports.rb
2014-12-27 14:35:09 +01:00

11 lines
250 B
Ruby

class CreateReports < ActiveRecord::Migration
def change
create_table :reports do |t|
t.string :type, null: false
t.integer :target_id, null: false
t.integer :user_id, null: false
t.timestamps
end
end
end