retrospring/db/migrate/20150420232305_create_subscriptions.rb

13 lines
268 B
Ruby
Raw Normal View History

2023-10-20 01:37:34 +02:00
# frozen_string_literal: true
class CreateSubscriptions < ActiveRecord::Migration[4.2]
2015-04-21 03:12:11 +02: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