parent
a6b5e64e15
commit
e5ab4a3eb2
9 changed files with 104 additions and 21 deletions
11
db/migrate/20240217022038_add_count_to_ngword_histories.rb
Normal file
11
db/migrate/20240217022038_add_count_to_ngword_histories.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddCountToNgwordHistories < ActiveRecord::Migration[7.1]
|
||||
disable_ddl_transaction!
|
||||
|
||||
def change
|
||||
add_column :ngword_histories, :count, :integer, null: false, default: 0
|
||||
|
||||
add_index :ngword_histories, [:uri, :reason, :created_at], unique: false, algorithm: :concurrently
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue