Split stalled migration for string columns' empty default values

Description

The migration from could not be run successfully on production because of the size of the taggings table. We can try having the taggings table changes in a separate migration.

Output from the attempted migration from james_:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 ao3app@ao3-app15:~/app/current$ bundle exec rake db:migrate == 20180917212655 AddIpAddressToInviteRequests: migrating ===================== -- add_column(:invite_requests, :ip_address, :string) -> 0.0862s == 20180917212655 AddIpAddressToInviteRequests: migrated (0.0864s) ============ == 20181222042042 AddUniqueIndexToUserConfirmationTokens: migrating =========== -- remove_index(:users, :confirmation_token) -> 0.0067s -- add_index(:users, :confirmation_token, {:unique=>true}) -> 4.7036s == 20181222042042 AddUniqueIndexToUserConfirmationTokens: migrated (4.7104s) == == 20181224173813 AddUniqueIndexToUserEmails: migrating ======================= -- remove_index(:users, :email) -> 0.0055s -- add_index(:users, :email, {:unique=>true}) -> 5.0358s == 20181224173813 AddUniqueIndexToUserEmails: migrated (5.0414s) ============== == 20190207034230 RestoreDefaultEmptyStrings: migrating ======================= -- change_column_default(:archive_faqs, :slug, {:from=>nil, :to=>""}) -> 0.0117s -- change_column_default(:collections, :icon_alt_text, {:from=>nil, :to=>""}) -> 0.1003s -- change_column_default(:collections, :icon_comment_text, {:from=>nil, :to=>""}) -> 0.0041s -- change_column_default(:invite_requests, :simplified_email, {:from=>nil, :to=>""}) -> 0.0030s -- change_column_default(:languages, :sortable_name, {:from=>nil, :to=>""}) -> 0.0112s -- change_column_default(:pseuds, :icon_alt_text, {:from=>nil, :to=>""}) -> 6.5905s -- change_column_default(:pseuds, :icon_comment_text, {:from=>nil, :to=>""}) -> 0.0209s -- change_column_default(:skins, :icon_alt_text, {:from=>nil, :to=>""}) -> 0.2878s -- change_column_default(:taggings, :taggable_type, {:from=>nil, :to=>""}) rake aborted! StandardError: An error has occurred, all later migrations canceled:

Environment

None

Status

Assignee

Unassigned

Reporter

redsummernight

Roadmap

Misc

Priority

Medium

Affects versions

0.9.252

Fix versions

None

Components

BackEnd

Difficulty

Medium

Required Access Level

None

Milestone

Internal 0.9