Retrospring/db/migrate/20150420232305_create_subsc...

13 lines
268 B
Ruby

# frozen_string_literal: true
class CreateSubscriptions < ActiveRecord::Migration[4.2]
def change
create_table :subscriptions do |t|
t.integer :user_id, null: false
t.integer :answer_id, null: false
t.timestamps null: false
end
end
end