29e9f2dd32
Co-authored-by: Kara Diaby <kdiaby.pro@gmail.com>
6 lines
162 B
Ruby
6 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
|