2016-06-09 08:39:16 -04:00
|
|
|
# rubocop:disable all
|
2018-11-13 02:27:31 -05:00
|
|
|
class CreateNotificationSettings < ActiveRecord::Migration[4.2]
|
2016-03-28 07:41:00 -04:00
|
|
|
def change
|
|
|
|
create_table :notification_settings do |t|
|
2016-03-28 17:39:49 -04:00
|
|
|
t.references :user, null: false
|
|
|
|
t.references :source, polymorphic: true, null: false
|
|
|
|
t.integer :level, default: 0, null: false
|
2016-03-28 07:41:00 -04:00
|
|
|
|
|
|
|
t.timestamps null: false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|