7 lines
162 B
Ruby
7 lines
162 B
Ruby
|
class LinkUserAndExpert < ActiveRecord::Migration[6.0]
|
||
|
def change
|
||
|
add_reference :users, :expert, index: true
|
||
|
add_foreign_key :users, :experts
|
||
|
end
|
||
|
end
|