mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-15 12:44:03 +00:00
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.
8 lines
181 B
Ruby
8 lines
181 B
Ruby
class CreateEventsUsers < ActiveRecord::Migration
|
|
def change
|
|
create_table :events_users, id: false do |t|
|
|
t.references :event
|
|
t.references :user
|
|
end
|
|
end
|
|
end
|