Make antenna able to insert home
This commit is contained in:
parent
7c118ed1d0
commit
9429f5b60c
7 changed files with 34 additions and 8 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue