Add subscription model and link it to RFC

This commit is contained in:
Maximilian Grundke
2017-09-06 15:16:47 +02:00
parent f628774995
commit 5aa9edb209
6 changed files with 81 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
class CreateSubscriptions < ActiveRecord::Migration
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