2018-11-13 07:27:31 +00:00
|
|
|
class RemoveNotificationSettingNotNullConstraints < ActiveRecord::Migration[4.2]
|
2016-06-06 15:50:54 +00:00
|
|
|
def up
|
|
|
|
change_column :notification_settings, :source_type, :string, null: true
|
|
|
|
change_column :notification_settings, :source_id, :integer, null: true
|
2016-06-09 19:33:31 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
change_column :notification_settings, :source_type, :string, null: false
|
|
|
|
change_column :notification_settings, :source_id, :integer, null: false
|
2016-06-06 15:50:54 +00:00
|
|
|
end
|
|
|
|
end
|