2023-07-12 07:47:08 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-03-27 14:09:10 +00:00
|
|
|
class AddNotifyToFollows < ActiveRecord::Migration[5.2]
|
2020-09-18 15:26:45 +00:00
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
|
|
|
safety_assured do
|
2024-01-10 10:35:06 +00:00
|
|
|
add_column :follows, :notify, :boolean, default: false, null: false
|
|
|
|
add_column :follow_requests, :notify, :boolean, default: false, null: false
|
2020-09-18 15:26:45 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :follows, :notify
|
|
|
|
remove_column :follow_requests, :notify
|
|
|
|
end
|
|
|
|
end
|