aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/chouette/footnote.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/chouette/footnote.rb')
-rw-r--r--app/models/chouette/footnote.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/chouette/footnote.rb b/app/models/chouette/footnote.rb
new file mode 100644
index 000000000..de427b249
--- /dev/null
+++ b/app/models/chouette/footnote.rb
@@ -0,0 +1,6 @@
+class Chouette::Footnote < Chouette::ActiveRecord
+ belongs_to :line, inverse_of: :footnotes
+ has_and_belongs_to_many :vehicle_journeys, :class_name => 'Chouette::VehicleJourney'
+
+ validates_presence_of :line
+end