mirror of
https://github.com/beatriceo/polyglot.git
synced 2025-10-21 17:29:59 +00:00
created channel for action cable and friendship relationship in database
This commit is contained in:
8
db/migrate/20180827151325_create_connections.rb
Normal file
8
db/migrate/20180827151325_create_connections.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
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
|
Reference in New Issue
Block a user