Files
codeocean/db/migrate/20170906124500_create_subscriptions.rb
2021-05-14 22:03:06 +02:00

14 lines
295 B
Ruby

# frozen_string_literal: true
class CreateSubscriptions < ActiveRecord::Migration[4.2]
def change
create_table :subscriptions do |t|
t.belongs_to :user, polymorphic: true
t.references :request_for_comment
t.string :type
t.timestamps null: false
end
end
end