aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailbox
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-01-20 10:56:17 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-01-20 11:09:00 +0900
commit4a0e3809be480cd3e0ca503d451b966259b232e9 (patch)
tree9cec6f46802f636c04d0c3239de13a36fa6bbd96 /actionmailbox
parentdd8d37881c936d22acbc244e7e3b9b3a26e441b8 (diff)
downloadrails-4a0e3809be480cd3e0ca503d451b966259b232e9.tar.gz
rails-4a0e3809be480cd3e0ca503d451b966259b232e9.tar.bz2
rails-4a0e3809be480cd3e0ca503d451b966259b232e9.zip
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.
Diffstat (limited to 'actionmailbox')
0 files changed, 0 insertions, 0 deletions