BigW Consortium Gitlab

20160328112808_create_notification_settings.rb 314 Bytes
Newer Older
1 2 3
class CreateNotificationSettings < ActiveRecord::Migration
  def change
    create_table :notification_settings do |t|
4 5 6
      t.references :user, null: false
      t.references :source, polymorphic: true, null: false
      t.integer :level, default: 0, null: false
7 8 9 10 11

      t.timestamps null: false
    end
  end
end