retrospring/db/migrate/20150420232305_create_subscriptions.rb
2015-04-21 06:42:11 +05:30

10 lines
232 B
Ruby

class CreateSubscriptions < ActiveRecord::Migration
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