2023-08-15 01:54:51 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddIndexableToAccounts < ActiveRecord::Migration[7.0]
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
2024-01-10 19:35:06 +09:00
|
|
|
safety_assured { add_column :accounts, :indexable, :boolean, default: false, null: false }
|
2023-08-15 01:54:51 +09:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :accounts, :indexable
|
|
|
|
end
|
|
|
|
end
|