Add contactable to tracks
Added social media fields to track submission form by using a polymorphic association with the Contact Model.
This commit is contained in:
parent
770a63e15c
commit
465976bc60
7 changed files with 31 additions and 3 deletions
6
db/migrate/20190612161235_add_polymorphic_to_contact.rb
Normal file
6
db/migrate/20190612161235_add_polymorphic_to_contact.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class AddPolymorphicToContact < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
add_column :contacts, :contactable_type, :string
|
||||
add_column :contacts, :contactable_id, :integer
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue