2023-07-12 03:47:08 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-09-01 07:31:28 -04:00
|
|
|
class AddShowRepliesToLists < ActiveRecord::Migration[5.2]
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
|
|
|
safety_assured do
|
2024-01-10 05:35:06 -05:00
|
|
|
add_column(
|
2020-09-01 07:31:28 -04:00
|
|
|
:lists,
|
|
|
|
:replies_policy,
|
|
|
|
:integer,
|
2024-01-10 05:35:06 -05:00
|
|
|
null: false,
|
2020-09-01 07:31:28 -04:00
|
|
|
default: 0
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :lists, :replies_policy
|
|
|
|
end
|
|
|
|
end
|