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