1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib
Ryuta Kamizono 4a0e3809be Fix type casting column default in change_column
Since #31230, `change_column` is executed as a bulk statement.

That caused incorrect type casting column default by looking up the
before changed type, not the after changed type.

In a bulk statement, we can't use `change_column_default_for_alter` if
the statement changes the column type.

This fixes the type casting to use the constructed target sql_type.

Fixes #34938.
2019-01-20 11:09:00 +09:00
..
active_record Fix type casting column default in change_column 2019-01-20 11:09:00 +09:00
arel All of queries should return correct result even if including large number 2019-01-18 16:01:07 +09:00
rails/generators Refactor migrations_path command option to database 2018-09-28 14:24:36 -04:00
active_record.rb Bump license years for 2019 2018-12-31 10:24:38 +07:00
arel.rb Remove unused Arel::Compatibility::Wheres 2019-01-15 22:13:25 +09:00