lib/birdspotting/schema_statements.rb in birdspotting-0.1.5 vs lib/birdspotting/schema_statements.rb in birdspotting-0.1.6
- old
+ new
@@ -2,11 +2,11 @@
def add_column(table_name, column_name, type, options = {})
add_column_position_check(options)
encoding_check(column_name, type, options)
- super
+ super(table_name, column_name, type, **options)
end
def rename_column(*args, **kwargs)
rename_column_check(kwargs)
@@ -14,10 +14,10 @@
end
def remove_column(table_name, column_name, type = nil, options = {})
remove_column_check(column_name, table_name, options)
- super(table_name, column_name, type, options)
+ super(table_name, column_name, type, **options)
end
private
def rename_column_check(options)