Use timestamp IDs for mute rules
This commit is contained in:
parent
c3fcd4eb07
commit
3acdfafcae
|
@ -6,5 +6,7 @@ class CreateMuteRules < ActiveRecord::Migration[5.2]
|
|||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
change_column(:mute_rules, :id, :bigint, default: -> { "gen_timestamp_id('mute_rules'::text)" })
|
||||
end
|
||||
end
|
||||
|
|
|
@ -107,7 +107,7 @@ ActiveRecord::Schema.define(version: 2021_12_28_135426) do
|
|||
t.index ["user_id"], name: "index_moderation_votes_on_user_id"
|
||||
end
|
||||
|
||||
create_table "mute_rules", force: :cascade do |t|
|
||||
create_table "mute_rules", id: :bigint, default: -> { "gen_timestamp_id('mute_rules'::text)" }, force: :cascade do |t|
|
||||
t.bigint "user_id"
|
||||
t.string "muted_phrase"
|
||||
t.datetime "created_at", null: false
|
||||
|
|
Loading…
Reference in New Issue