BigW Consortium Gitlab

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

      t.timestamps null: false
    end
  end
end