Introduce an association between User and Event
Introduce an association between User and Event for the user schedule. As there was already a relation call users in Event the new relation is called public_users. And for the same reason the relation in Event is called public_events.
This commit is contained in:
parent
89af26bf18
commit
7f7375b7db
4 changed files with 19 additions and 0 deletions
|
|
@ -243,6 +243,11 @@ ActiveRecord::Schema.define(version: 20170213145807) do
|
|||
t.datetime "created_at"
|
||||
end
|
||||
|
||||
create_table "events_users", id: false, force: :cascade do |t|
|
||||
t.integer "event_id"
|
||||
t.integer "user_id"
|
||||
end
|
||||
|
||||
create_table "lodgings", force: :cascade do |t|
|
||||
t.string "name"
|
||||
t.text "description"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue