summaryrefslogtreecommitdiff
path: root/db/migrate/20160328112808_create_notification_settings.rb
blob: 7d77e8004baf04c26f8496b645a898f781fb517f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# rubocop:disable all
class CreateNotificationSettings < ActiveRecord::Migration
  def change
    create_table :notification_settings do |t|
      t.references :user, null: false
      t.references :source, polymorphic: true, null: false
      t.integer :level, default: 0, null: false

      t.timestamps null: false
    end
  end
end