Use timestamp IDs for mute rules

This commit is contained in:
Karina Kwiatek 2022-01-02 15:30:04 +01:00
parent c3fcd4eb07
commit 3acdfafcae
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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