~cytrogen/masto-fe

ref: 2126812f65aafe5d89e64e9fc324186bb9c8dc14 masto-fe/db/migrate/20230814223300_add_indexable_to_accounts.rb -rw-r--r-- 413 bytes
2126812f — Claire Merge commit 'd9c21293aa6e105cedeff6b5e469af40a20909d9' into glitch-soc/merge-upstream 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require Rails.root.join('lib', 'mastodon', 'migration_helpers')

class AddIndexableToAccounts < ActiveRecord::Migration[7.0]
  include Mastodon::MigrationHelpers

  disable_ddl_transaction!

  def up
    safety_assured { add_column_with_default :accounts, :indexable, :boolean, default: false, allow_null: false }
  end

  def down
    remove_column :accounts, :indexable
  end
end