blob: 259abb08e4742096d5891923692dda1fef5fbc3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
class RemoveNotificationSettingNotNullConstraints < ActiveRecord::Migration
def up
change_column :notification_settings, :source_type, :string, null: true
change_column :notification_settings, :source_id, :integer, null: true
end
def down
change_column :notification_settings, :source_type, :string, null: false
change_column :notification_settings, :source_id, :integer, null: false
end
end
|