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

14 lines
367 B
Ruby

# frozen_string_literal: true
class CreateAnomalyNotifications < ActiveRecord::Migration[4.2]
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