2023-07-12 16:47:08 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-06-16 01:00:23 +09:00
|
|
|
class AddAutofollowToInvites < ActiveRecord::Migration[5.2]
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
2022-04-30 06:27:03 +09:00
|
|
|
def up
|
2018-06-16 01:00:23 +09:00
|
|
|
safety_assured do
|
2024-01-10 19:35:06 +09:00
|
|
|
add_column :invites, :autofollow, :bool, default: false, null: false
|
2018-06-16 01:00:23 +09:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :invites, :autofollow
|
|
|
|
end
|
|
|
|
end
|