Replace add_column_with_default to add_column
This commit is contained in:
parent
5e3a208f58
commit
260225eb57
1 changed files with 4 additions and 6 deletions
|
@ -5,13 +5,11 @@ class AddAllowLocalRequestsFromSystemHooksToApplicationSettings < ActiveRecord::
|
|||
|
||||
DOWNTIME = false
|
||||
|
||||
disable_ddl_transaction!
|
||||
|
||||
def up
|
||||
add_column_with_default(:application_settings, :allow_local_requests_from_system_hooks,
|
||||
:boolean,
|
||||
default: true,
|
||||
allow_null: false)
|
||||
add_column(:application_settings, :allow_local_requests_from_system_hooks,
|
||||
:boolean,
|
||||
default: true,
|
||||
null: false)
|
||||
end
|
||||
|
||||
def down
|
||||
|
|
Loading…
Reference in a new issue