diff options
author | Jeremy Daer <jeremydaer@gmail.com> | 2016-04-17 13:35:16 -0700 |
---|---|---|
committer | Jeremy Daer <jeremydaer@gmail.com> | 2016-04-18 12:42:24 -0700 |
commit | 485e7f25f29ca1ca23bb214b802cf68840dabbb6 (patch) | |
tree | 535f0c96556f268df114350891bbdce75bbe054a /activerecord/lib/active_record/connection_adapters/column.rb | |
parent | b39131e8bdb65a9ee51e49d7fe8f058e702e173b (diff) | |
download | rails-485e7f25f29ca1ca23bb214b802cf68840dabbb6.tar.gz rails-485e7f25f29ca1ca23bb214b802cf68840dabbb6.tar.bz2 rails-485e7f25f29ca1ca23bb214b802cf68840dabbb6.zip |
Database comments: switch to keyword args for new table options
* Switch to keyword args where we can without breaking compat.
* Use add_table_options! for :options, too.
* Some code polish.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/column.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/column.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/column.rb b/activerecord/lib/active_record/connection_adapters/column.rb index 1c798d99f2..ce2f9f1925 100644 --- a/activerecord/lib/active_record/connection_adapters/column.rb +++ b/activerecord/lib/active_record/connection_adapters/column.rb @@ -15,7 +15,7 @@ module ActiveRecord # +default+ is the type-casted default value, such as +new+ in <tt>sales_stage varchar(20) default 'new'</tt>. # +sql_type_metadata+ is various information about the type of the column # +null+ determines if this column allows +NULL+ values. - def initialize(name, default, sql_type_metadata = nil, null = true, table_name = nil, default_function = nil, collation = nil, comment = nil) + def initialize(name, default, sql_type_metadata = nil, null = true, table_name = nil, default_function = nil, collation = nil, comment: nil) @name = name.freeze @table_name = table_name @sql_type_metadata = sql_type_metadata |