thoughtbot / paperclip

Easy file attachment management for ActiveRecord
https://thoughtbot.com
Other
9.01k stars 2.43k forks source link

Rails >6 add_column and column receive keyword arguments now #2671

Open gabrielengel opened 3 years ago

gabrielengel commented 3 years ago

Please see: https://apidock.com/rails/v6.0.0/ActiveRecord/ConnectionAdapters/SchemaStatements/add_column

# Before:
add_column(table_name, column_name, type, options = {}) public

# Currently (after Rails 6.0.0)
add_column(table_name, column_name, type, **options) public