The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
571 B

  1. require Rails.root.join('lib', 'mastodon', 'migration_helpers')
  2. class IncreaseBackupSize < ActiveRecord::Migration[5.2]
  3. include Mastodon::MigrationHelpers
  4. disable_ddl_transaction!
  5. def up
  6. safety_assured do
  7. change_column_type_concurrently :backups, :dump_file_size, :bigint
  8. cleanup_concurrent_column_type_change :backups, :dump_file_size
  9. end
  10. end
  11. def down
  12. safety_assured do
  13. change_column_type_concurrently :backups, :dump_file_size, :integer
  14. cleanup_concurrent_column_type_change :backups, :dump_file_size
  15. end
  16. end
  17. end