aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/path_generation_test.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-12-03 15:00:05 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-12-03 15:12:23 +0900
commitd0f5dce492696019ddf409892829f89bee5f45ef (patch)
treec0339a27fee2b8ee4f38e398f7f3a6ecd688c673 /railties/test/path_generation_test.rb
parent8c5a7fbefd3cad403e7594d0b6a5488d80d4c98e (diff)
downloadrails-d0f5dce492696019ddf409892829f89bee5f45ef.tar.gz
rails-d0f5dce492696019ddf409892829f89bee5f45ef.tar.bz2
rails-d0f5dce492696019ddf409892829f89bee5f45ef.zip
`change_column_default` should be executed after type changing
If do not execute a type changing first, filling in default value may be failed. ``` % ARCONN=postgresql be ruby -w -Itest test/cases/migration/compatibility_test.rb -n test_legacy_change_column_with_null_executes_update Using postgresql Run options: -n test_legacy_change_column_with_null_executes_update --seed 20459 E Error: ActiveRecord::Migration::CompatibilityTest#test_legacy_change_column_with_null_executes_update: StandardError: An error has occurred, this and all later migrations canceled: PG::StringDataRightTruncation: ERROR: value too long for type character varying(5) : UPDATE "testings" SET "foo"='foobar' WHERE "foo" IS NULL ```
Diffstat (limited to 'railties/test/path_generation_test.rb')
0 files changed, 0 insertions, 0 deletions