Skip to content

Commit 21894da

Browse files
ruby2_keyword removal step#3
1 parent dae1bb8 commit 21894da

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/safe-pg-migrations/plugins/statement_insurer/add_column.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
module SafePgMigrations
44
module StatementInsurer
55
module AddColumn
6-
ruby2_keywords def add_column(table_name, column_name, type, *args)
7-
options = args.last.is_a?(Hash) && args.last
8-
options ||= {}
9-
6+
def add_column(table_name, column_name, type, **options)
107
return super if should_keep_default_implementation?(**options)
118

129
raise <<~ERROR unless backfill_column_default_safe?(table_name)

0 commit comments

Comments
 (0)