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