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
|
13
db/schema.rb
13
db/schema.rb
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.1].define(version: 2024_02_12_230358) do
|
||||
ActiveRecord::Schema[7.1].define(version: 2024_02_16_042730) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
||||
|
@ -868,6 +868,17 @@ ActiveRecord::Schema[7.1].define(version: 2024_02_12_230358) do
|
|||
t.index ["target_account_id"], name: "index_mutes_on_target_account_id"
|
||||
end
|
||||
|
||||
create_table "ngword_histories", force: :cascade 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.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["uri", "keyword", "created_at"], name: "index_ngword_histories_on_uri_and_keyword_and_created_at"
|
||||
end
|
||||
|
||||
create_table "notifications", force: :cascade do |t|
|
||||
t.bigint "activity_id", null: false
|
||||
t.string "activity_type", null: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue