The code powering m.abunchtell.com https://m.abunchtell.com
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

22 строки
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