どうしてくれよう…

== 20191212003415 IncreaseBackupSize: migrating ===============================
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

=== Dangerous operation detected #strong_migrations ===

Changing the type of an existing column requires the entire
table and indexes to be rewritten. A safer approach is to:

1. Create a new column
2. Write to both columns
3. Backfill data from the old column to the new column
4. Move reads from the old column to the new column
5. Stop writing to the old column
6. Drop the old column

/app/db/migrate/20191212003415_increase_backup_size.rb:3:in `up'

@zundan 実行しちゃっていいんじゃね? って書いてきたw

あざます!!

$ heroku run rails r 'puts Backup.count'
0

うちはすっごい大丈夫そうなんですけどはてさて。

フォロー

@zundan すぐ終わるっしょw

Migrating to IncreaseBackupSize (20191212003415)
== 20191212003415 IncreaseBackupSize: migrating ===============================
-- change_column(:backups, :dump_file_size, :bigint)
-> 0.0100s
== 20191212003415 IncreaseBackupSize: migrated (0.0101s) ======================

ログインして会話に参加
Fedibird

様々な目的に使える、日本の汎用マストドンサーバーです。安定した利用環境と、多数の独自機能を提供しています。