2021-12-22 10:21:09 -08:00
|
|
|
class CreateMuteRules < ActiveRecord::Migration[5.2]
|
|
|
|
def change
|
|
|
|
create_table :mute_rules do |t|
|
|
|
|
t.references :user, foreign_key: true
|
|
|
|
t.string :muted_phrase
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
2022-01-02 06:30:04 -08:00
|
|
|
|
|
|
|
change_column(:mute_rules, :id, :bigint, default: -> { "gen_timestamp_id('mute_rules'::text)" })
|
2021-12-22 10:21:09 -08:00
|
|
|
end
|
|
|
|
end
|