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