Persist reasons for notifications to db
This commit is contained in:
11
db/migrate/20180226131340_create_anomaly_notifications.rb
Normal file
11
db/migrate/20180226131340_create_anomaly_notifications.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreateAnomalyNotifications < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :anomaly_notifications do |t|
|
||||
t.belongs_to :user, polymorphic: true, index: true
|
||||
t.belongs_to :exercise, index: true
|
||||
t.belongs_to :exercise_collection, index: true
|
||||
t.string :reason
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user