created channel for action cable and friendship relationship in database

This commit is contained in:
Beatrice Olivera
2018-08-27 16:55:44 +01:00
parent 7d67f04c63
commit f9cbb7c680
7 changed files with 59 additions and 2 deletions

View 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