2016-06-06 15:50:54 +00:00
|
|
|
class RemoveNotificationSettingNotNullConstraints < ActiveRecord::Migration
|
|
|
|
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
|