2016-06-09 12:39:16 +00:00
|
|
|
# rubocop:disable all
|
2016-03-28 11:41:00 +00:00
|
|
|
class CreateNotificationSettings < ActiveRecord::Migration
|
|
|
|
def change
|
|
|
|
create_table :notification_settings do |t|
|
2016-03-28 21:39:49 +00:00
|
|
|
t.references :user, null: false
|
|
|
|
t.references :source, polymorphic: true, null: false
|
|
|
|
t.integer :level, default: 0, null: false
|
2016-03-28 11:41:00 +00:00
|
|
|
|
|
|
|
t.timestamps null: false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|