20230814223300_add_indexable_to_accounts.rb 413 B

1234567891011121314151617
  1. # frozen_string_literal: true
  2. require Rails.root.join('lib', 'mastodon', 'migration_helpers')
  3. class AddIndexableToAccounts < ActiveRecord::Migration[7.0]
  4. include Mastodon::MigrationHelpers
  5. disable_ddl_transaction!
  6. def up
  7. safety_assured { add_column_with_default :accounts, :indexable, :boolean, default: false, allow_null: false }
  8. end
  9. def down
  10. remove_column :accounts, :indexable
  11. end
  12. end