This repository has been archived on 2024-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
2023-07-12 03:47:08 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-10-17 11:13:04 -04:00
|
|
|
class AddSilentToMentions < ActiveRecord::Migration[5.2]
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
|
|
|
safety_assured do
|
2024-01-10 05:35:06 -05:00
|
|
|
add_column(
|
2018-10-17 11:13:04 -04:00
|
|
|
:mentions,
|
|
|
|
:silent,
|
|
|
|
:boolean,
|
2024-01-10 05:35:06 -05:00
|
|
|
null: false,
|
2018-10-17 11:13:04 -04:00
|
|
|
default: false
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :mentions, :silent
|
|
|
|
end
|
|
|
|
end
|