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