mirror of
https://github.com/beatriceo/polyglot.git
synced 2025-08-12 19:19:13 +00:00
9 lines
256 B
Ruby
9 lines
256 B
Ruby
class CreateConnections < ActiveRecord::Migration[5.2]
|
|
def change
|
|
create_table :connections do |t|
|
|
t.references :user, foreign_key: true, index: true
|
|
t.references :contact, foreign_key: { to_table: :users }, index: true
|
|
end
|
|
end
|
|
end
|