20160328112808_create_notification_settings.rb 341 Bytes
Newer Older
1
# rubocop:disable all
2
class CreateNotificationSettings < ActiveRecord::Migration[4.2]
3 4
  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