Fix: #950 新規アンテナ作成時にリストへ挿入するを設定しても、ホーム挿入になる (#975)

* Fix: #950 新規アンテナ作成時にリストへ挿入するを設定しても、ホーム挿入になる

* Fix test
This commit is contained in:
KMY(雪あすか) 2025-01-31 12:04:26 +09:00 committed by GitHub
parent 80cace410f
commit 915ee553da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 27 additions and 5 deletions

View file

@ -0,0 +1,7 @@
# frozen_string_literal: true
class SetAntennaListIdDefaultValue < ActiveRecord::Migration[8.0]
def change
change_column_default :antennas, :list_id, from: nil, to: 0
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.0].define(version: 2025_01_23_091137) do
ActiveRecord::Schema[8.0].define(version: 2025_01_30_232529) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_catalog.plpgsql"
@ -309,7 +309,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_01_23_091137) do
create_table "antennas", force: :cascade do |t|
t.bigint "account_id", null: false
t.bigint "list_id", null: false
t.bigint "list_id", default: 0, null: false
t.string "title", default: "", null: false
t.jsonb "keywords"
t.jsonb "exclude_keywords"