Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C chouette-core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 36
    • Merge requests 36
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Administrator
  • chouette-core
  • Wiki
  • Rails models

Rails models · Changes

Page history
Retrieve chouette-core wiki content authored May 06, 2018 by Alban Peignier's avatar Alban Peignier
Hide whitespace changes
Inline Side-by-side
Showing with 31 additions and 0 deletions
+31 -0
  • Rails-models.md Rails-models.md +31 -0
  • No files found.
Rails-models.md 0 → 100644
View page @ f9aa7ef7
## `Referential` model
Methods instead of `has_many` associations??
## Model associated with a `Referential`
### `Referential` support
Classes with an association to `Referential` must:
* include the `ReferentialSupport` module
* not have a `belongs_to :referential` association because each `Referential` is a separate Postgres schema
```ruby
```
### Objectids
Objectids are only used on models contained in a `Referential`. Here's an example:
```ruby
```
## Model not associated with a `Referential`
```ruby
```
## Decorator
![Action links](images/action_links.png)
Clone repository

Coding Conventions