diff options
Diffstat (limited to 'db/migrate/20190402150158_backport_enterprise_schema.rb')
-rw-r--r-- | db/migrate/20190402150158_backport_enterprise_schema.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/db/migrate/20190402150158_backport_enterprise_schema.rb b/db/migrate/20190402150158_backport_enterprise_schema.rb index dcf84d762a3..c4fbb4b2ab9 100644 --- a/db/migrate/20190402150158_backport_enterprise_schema.rb +++ b/db/migrate/20190402150158_backport_enterprise_schema.rb @@ -198,9 +198,9 @@ class BackportEnterpriseSchema < ActiveRecord::Migration[5.0] # rubocop:enable Migration/DropTable end - def add_column_with_default_if_not_exists(table, name, *args) + def add_column_with_default_if_not_exists(table, name, type, **args) unless column_exists?(table, name) - add_column_with_default(table, name, *args) # rubocop:disable Migration/AddColumnWithDefault + add_column_with_default(table, name, type, **args) # rubocop:disable Migration/AddColumnWithDefault end end @@ -226,10 +226,10 @@ class BackportEnterpriseSchema < ActiveRecord::Migration[5.0] end end - def create_table_if_not_exists(name, *args, &block) + def create_table_if_not_exists(name, **args, &block) return if table_exists?(name) - create_table(name, *args, &block) + create_table(name, **args, &block) end def add_concurrent_foreign_key(source, target, column:, on_delete: nil, name: nil) |