mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 16:29:52 +01:00
14 lines
346 B
Ruby
14 lines
346 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|
|
|
|
change_column(:mute_rules, :id, :bigint, default: -> { "gen_timestamp_id('mute_rules'::text)" })
|
|
end
|
|
end
|