Add functionality for School/Department for an organisation.
Changes:
    - added a Department model whose instances belong to an org and require name.
    - added a DepartmentController and views for create, edit/update and a index view which is a tab
      of 'Organisational Details'.
    - added the optional attribute department_id to User model.
    - added Rspec tests.
    - updated app/controllers/registrations_controller.rb, app/models/org.rb and
      app/models/user.rb to get rid of outstanding Rubocop warnings

    Fix for issue #2088.
dev
1 parent 904ee7f commit 6b2c6120a5d277cc3b25f6f18e9c106999d7ea75
@John Pinto John Pinto authored on 4 Jun 2019
Showing 23 changed files
View
Gemfile.lock
View
app/controllers/org_admin/departments_controller.rb 0 → 100644
View
app/controllers/paginable/departments_controller.rb 0 → 100644
View
app/controllers/paginable/guidances_controller.rb
View
app/controllers/registrations_controller.rb
View
app/models/department.rb 0 → 100644
View
app/models/org.rb
View
app/models/user.rb
View
app/policies/department_policy.rb 0 → 100644
View
app/views/devise/registrations/_personal_details.html.erb
View
app/views/org_admin/departments/edit.html.erb 0 → 100644
View
app/views/org_admin/departments/new.html.erb 0 → 100644
View
app/views/orgs/_departments.html.erb 0 → 100644
View
app/views/orgs/_profile_form.html.erb
View
app/views/orgs/admin_edit.html.erb
View
app/views/paginable/departments/_index.html.erb 0 → 100644
View
app/views/paginable/users/_index.html.erb
View
config/routes.rb
View
db/migrate/20190507091025_create_departments.rb 0 → 100644
View
db/schema.rb
View
spec/factories/departments.rb 0 → 100644
View
spec/factories/users.rb
View
spec/models/department_spec.rb 0 → 100644