parent
0ca2a73fd2
commit
7421c89431
19 changed files with 262 additions and 17 deletions
17
db/migrate/20240216042730_create_ngword_histories.rb
Normal file
17
db/migrate/20240216042730_create_ngword_histories.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CreateNgwordHistories < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
create_table :ngword_histories do |t|
|
||||
t.string :uri, null: false
|
||||
t.integer :target_type, null: false
|
||||
t.integer :reason, null: false
|
||||
t.string :text, null: false
|
||||
t.string :keyword, null: false
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :ngword_histories, [:uri, :keyword, :created_at], unique: false
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue