Make antenna able to insert home

This commit is contained in:
KMY 2023-05-09 15:07:29 +09:00
parent 7c118ed1d0
commit 9429f5b60c
7 changed files with 34 additions and 8 deletions

View file

@ -0,0 +1,15 @@
# frozen_string_literal: true
class ChangeAntennasListToNullable < ActiveRecord::Migration[6.1]
def up
safety_assured do
remove_foreign_key :antennas, :lists
end
end
def down
safety_assured do
add_foreign_key :antennas, :lists
end
end
end