diff options
| author | Vlatka Pavisic | 2016-12-29 17:20:06 +0100 | 
|---|---|---|
| committer | Vlatka Pavisic | 2016-12-29 17:20:06 +0100 | 
| commit | adfb4aebfab39b5a7a4b9a70ac62f639567aead6 (patch) | |
| tree | 3ef864b0f48e946d04d1c79947a2e8efe1f96853 /app/models/organisation.rb | |
| parent | 08b68565fb7f82bc7754bd62ad3f72efca6ea62d (diff) | |
| download | chouette-core-adfb4aebfab39b5a7a4b9a70ac62f639567aead6.tar.bz2 | |
Refs #2262 Refs #2263 Refs #2264 Refs #2265 : Calendars
Diffstat (limited to 'app/models/organisation.rb')
| -rw-r--r-- | app/models/organisation.rb | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/organisation.rb b/app/models/organisation.rb index af1042081..8547ce5e1 100644 --- a/app/models/organisation.rb +++ b/app/models/organisation.rb @@ -13,6 +13,7 @@ class Organisation < ActiveRecord::Base    has_many :line_referentials, through: :line_referential_memberships    has_many :workbenches +  has_many :calendars    validates_presence_of :name    validates_uniqueness_of :code  | 
