modifying relationship between users and organisations \n -users now belong_to organisation \n -organisations now have_many users \n -removed the depricated user_org_roles structure with migration \n -moved data out of that structure into the existing organisation_id field of users to complete relationship \n -re-evaluated functions to do with organisation_id field, as it was used as a placeholder before
dev
1 parent b8ae770 commit 563f338b026d6ffa59e4afbdfd794b4f59eb0977
@xsrust xsrust authored on 25 Oct 2016
Showing 4 changed files
View
app/controllers/users_controller.rb
View
app/models/organisation.rb
View
app/models/user.rb
View
db/migrate/20161021100420_single_organisation_for_users.rb 0 → 100644