2020-04-19 09:10:31 -07:00
|
|
|
class CreateSubscriptions < ActiveRecord::Migration[4.2]
|
2015-04-20 18:12:11 -07:00
|
|
|
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
|