ninoxe 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. checksums.yaml +13 -5
  2. data/app/models/chouette/company.rb +3 -4
  3. data/app/models/chouette/line.rb +0 -1
  4. data/app/models/chouette/network.rb +4 -5
  5. data/app/models/chouette/stop_area.rb +25 -26
  6. data/config/database.yml.me +11 -0
  7. data/db/migrate/20150630135517_remove_uniqueness_for_registration_number.rb +22 -0
  8. data/lib/ninoxe.rb~ +7 -0
  9. data/lib/ninoxe/version.rb +1 -1
  10. metadata +45 -212
  11. data/spec/dummy/README.rdoc +0 -28
  12. data/spec/dummy/Rakefile +0 -6
  13. data/spec/dummy/app/assets/images/.keep +0 -0
  14. data/spec/dummy/app/assets/javascripts/application.js +0 -13
  15. data/spec/dummy/app/assets/stylesheets/application.css +0 -13
  16. data/spec/dummy/app/controllers/application_controller.rb +0 -5
  17. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  18. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  19. data/spec/dummy/app/mailers/.keep +0 -0
  20. data/spec/dummy/app/models/.keep +0 -0
  21. data/spec/dummy/app/models/concerns/.keep +0 -0
  22. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  23. data/spec/dummy/bin/bundle +0 -3
  24. data/spec/dummy/bin/rails +0 -4
  25. data/spec/dummy/bin/rake +0 -4
  26. data/spec/dummy/config.ru +0 -4
  27. data/spec/dummy/config/application.rb +0 -28
  28. data/spec/dummy/config/boot.rb +0 -5
  29. data/spec/dummy/config/database.yml +0 -19
  30. data/spec/dummy/config/environment.rb +0 -5
  31. data/spec/dummy/config/environments/development.rb +0 -29
  32. data/spec/dummy/config/environments/production.rb +0 -80
  33. data/spec/dummy/config/environments/test.rb +0 -36
  34. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  35. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  36. data/spec/dummy/config/initializers/inflections.rb +0 -16
  37. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  38. data/spec/dummy/config/initializers/secret_token.rb +0 -12
  39. data/spec/dummy/config/initializers/session_store.rb +0 -3
  40. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  41. data/spec/dummy/config/locales/en.yml +0 -23
  42. data/spec/dummy/config/locales/fr.yml +0 -23
  43. data/spec/dummy/config/routes.rb +0 -4
  44. data/spec/dummy/db/schema.rb +0 -489
  45. data/spec/dummy/db/test.sqlite3 +0 -0
  46. data/spec/dummy/lib/assets/.keep +0 -0
  47. data/spec/dummy/log/.keep +0 -0
  48. data/spec/dummy/public/404.html +0 -58
  49. data/spec/dummy/public/422.html +0 -58
  50. data/spec/dummy/public/500.html +0 -57
  51. data/spec/dummy/public/favicon.ico +0 -0
  52. data/spec/dummy/script/rails +0 -6
  53. data/spec/factories/chouette_access_links.rb +0 -13
  54. data/spec/factories/chouette_access_points.rb +0 -12
  55. data/spec/factories/chouette_companies.rb +0 -9
  56. data/spec/factories/chouette_connection_links.rb +0 -13
  57. data/spec/factories/chouette_footnotes.rb +0 -10
  58. data/spec/factories/chouette_group_of_lines.rb +0 -9
  59. data/spec/factories/chouette_journey_pattern.rb +0 -40
  60. data/spec/factories/chouette_lines.rb +0 -44
  61. data/spec/factories/chouette_networks.rb +0 -9
  62. data/spec/factories/chouette_routes.rb +0 -26
  63. data/spec/factories/chouette_stop_areas.rb +0 -12
  64. data/spec/factories/chouette_stop_points.rb +0 -10
  65. data/spec/factories/chouette_time_table.rb +0 -37
  66. data/spec/factories/chouette_vehicle_journey.rb +0 -66
  67. data/spec/factories/chouette_vehicle_journey_at_stop.rb +0 -8
  68. data/spec/models/chouette/access_link_spec.rb +0 -82
  69. data/spec/models/chouette/access_point_spec.rb +0 -269
  70. data/spec/models/chouette/active_record_spec.rb +0 -121
  71. data/spec/models/chouette/area_type_spec.rb +0 -53
  72. data/spec/models/chouette/company_spec.rb +0 -51
  73. data/spec/models/chouette/connection_link_spec.rb +0 -60
  74. data/spec/models/chouette/direction_spec.rb +0 -60
  75. data/spec/models/chouette/exporter_spec.rb +0 -28
  76. data/spec/models/chouette/file_validator_spec.rb +0 -28
  77. data/spec/models/chouette/footnote_spec.rb +0 -9
  78. data/spec/models/chouette/group_of_line_spec.rb +0 -31
  79. data/spec/models/chouette/journey_pattern_spec.rb +0 -64
  80. data/spec/models/chouette/line_spec.rb +0 -123
  81. data/spec/models/chouette/loader_spec.rb +0 -69
  82. data/spec/models/chouette/network_spec.rb +0 -22
  83. data/spec/models/chouette/object_id_spec.rb +0 -149
  84. data/spec/models/chouette/route_spec.rb +0 -238
  85. data/spec/models/chouette/stop_area_spec.rb +0 -443
  86. data/spec/models/chouette/stop_point_spec.rb +0 -41
  87. data/spec/models/chouette/time_table_period_spec.rb +0 -66
  88. data/spec/models/chouette/time_table_spec.rb +0 -1266
  89. data/spec/models/chouette/transport_mode_spec.rb +0 -64
  90. data/spec/models/chouette/trident_active_record_spec.rb +0 -115
  91. data/spec/models/chouette/vehicle_journey_at_stop_spec.rb +0 -47
  92. data/spec/models/chouette/vehicle_journey_spec.rb +0 -223
  93. data/spec/presenters/chouette/geometry/general_presenter.rb +0 -1
  94. data/spec/presenters/chouette/geometry/line_presenter_spec.rb +0 -13
  95. data/spec/spec_helper.rb +0 -58
@@ -1,23 +0,0 @@
1
- # Files in the config/locales directory are used for internationalization
2
- # and are automatically loaded by Rails. If you want to use locales other
3
- # than English, add the necessary files in this directory.
4
- #
5
- # To use the locales, use `I18n.t`:
6
- #
7
- # I18n.t 'hello'
8
- #
9
- # In views, this is aliased to just `t`:
10
- #
11
- # <%= t('hello') %>
12
- #
13
- # To use a different locale, set it with `I18n.locale`:
14
- #
15
- # I18n.locale = :es
16
- #
17
- # This would use the information in config/locales/es.yml.
18
- #
19
- # To learn more, please read the Rails Internationalization guide
20
- # available at http://guides.rubyonrails.org/i18n.html.
21
-
22
- fr:
23
- hello: "Bonjour le monde"
@@ -1,4 +0,0 @@
1
- Rails.application.routes.draw do
2
-
3
- mount Ninoxe::Engine => "/ninoxe"
4
- end
@@ -1,489 +0,0 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended that you check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(version: 20150526075108) do
15
-
16
- # These are extensions that must be enabled in order to support this database
17
- enable_extension "plpgsql"
18
-
19
- create_table "access_links", force: true do |t|
20
- t.integer "access_point_id", limit: 8
21
- t.integer "stop_area_id", limit: 8
22
- t.string "objectid", null: false
23
- t.integer "object_version"
24
- t.datetime "creation_time"
25
- t.string "creator_id"
26
- t.string "name"
27
- t.string "comment"
28
- t.decimal "link_distance", precision: 19, scale: 2
29
- t.boolean "lift_availability"
30
- t.boolean "mobility_restricted_suitability"
31
- t.boolean "stairs_availability"
32
- t.time "default_duration"
33
- t.time "frequent_traveller_duration"
34
- t.time "occasional_traveller_duration"
35
- t.time "mobility_restricted_traveller_duration"
36
- t.string "link_type"
37
- t.integer "int_user_needs"
38
- t.string "link_orientation"
39
- end
40
-
41
- add_index "access_links", ["objectid"], name: "access_links_objectid_key", unique: true, using: :btree
42
-
43
- create_table "access_points", force: true do |t|
44
- t.string "objectid"
45
- t.integer "object_version"
46
- t.datetime "creation_time"
47
- t.string "creator_id"
48
- t.string "name"
49
- t.string "comment"
50
- t.decimal "longitude", precision: 19, scale: 16
51
- t.decimal "latitude", precision: 19, scale: 16
52
- t.string "long_lat_type"
53
- t.string "country_code"
54
- t.string "street_name"
55
- t.string "contained_in"
56
- t.time "openning_time"
57
- t.time "closing_time"
58
- t.string "access_type"
59
- t.boolean "lift_availability"
60
- t.boolean "mobility_restricted_suitability"
61
- t.boolean "stairs_availability"
62
- t.integer "stop_area_id", limit: 8
63
- t.string "zip_code"
64
- t.string "city_name"
65
- end
66
-
67
- add_index "access_points", ["objectid"], name: "access_points_objectid_key", unique: true, using: :btree
68
-
69
- create_table "companies", force: true do |t|
70
- t.string "objectid", null: false
71
- t.integer "object_version"
72
- t.datetime "creation_time"
73
- t.string "creator_id"
74
- t.string "name"
75
- t.string "short_name"
76
- t.string "organizational_unit"
77
- t.string "operating_department_name"
78
- t.string "code"
79
- t.string "phone"
80
- t.string "fax"
81
- t.string "email"
82
- t.string "registration_number"
83
- t.string "url"
84
- t.string "time_zone"
85
- end
86
-
87
- add_index "companies", ["objectid"], name: "companies_objectid_key", unique: true, using: :btree
88
- add_index "companies", ["registration_number"], name: "companies_registration_number_key", unique: true, using: :btree
89
-
90
- create_table "connection_links", force: true do |t|
91
- t.integer "departure_id", limit: 8
92
- t.integer "arrival_id", limit: 8
93
- t.string "objectid", null: false
94
- t.integer "object_version"
95
- t.datetime "creation_time"
96
- t.string "creator_id"
97
- t.string "name"
98
- t.string "comment"
99
- t.decimal "link_distance", precision: 19, scale: 2
100
- t.string "link_type"
101
- t.time "default_duration"
102
- t.time "frequent_traveller_duration"
103
- t.time "occasional_traveller_duration"
104
- t.time "mobility_restricted_traveller_duration"
105
- t.boolean "mobility_restricted_suitability"
106
- t.boolean "stairs_availability"
107
- t.boolean "lift_availability"
108
- t.integer "int_user_needs"
109
- end
110
-
111
- add_index "connection_links", ["objectid"], name: "connection_links_objectid_key", unique: true, using: :btree
112
-
113
- create_table "facilities", force: true do |t|
114
- t.integer "stop_area_id", limit: 8
115
- t.integer "line_id", limit: 8
116
- t.integer "connection_link_id", limit: 8
117
- t.integer "stop_point_id", limit: 8
118
- t.string "objectid", null: false
119
- t.integer "object_version"
120
- t.datetime "creation_time"
121
- t.string "creator_id"
122
- t.string "name"
123
- t.string "comment"
124
- t.string "description"
125
- t.boolean "free_access"
126
- t.decimal "longitude", precision: 19, scale: 16
127
- t.decimal "latitude", precision: 19, scale: 16
128
- t.string "long_lat_type"
129
- t.decimal "x", precision: 19, scale: 2
130
- t.decimal "y", precision: 19, scale: 2
131
- t.string "projection_type"
132
- t.string "country_code"
133
- t.string "street_name"
134
- t.string "contained_in"
135
- end
136
-
137
- add_index "facilities", ["objectid"], name: "facilities_objectid_key", unique: true, using: :btree
138
-
139
- create_table "facilities_features", id: false, force: true do |t|
140
- t.integer "facility_id", limit: 8
141
- t.integer "choice_code"
142
- end
143
-
144
- create_table "footnotes", force: true do |t|
145
- t.integer "line_id", limit: 8
146
- t.string "code"
147
- t.string "label"
148
- t.datetime "created_at"
149
- t.datetime "updated_at"
150
- end
151
-
152
- create_table "footnotes_vehicle_journeys", id: false, force: true do |t|
153
- t.integer "vehicle_journey_id", limit: 8
154
- t.integer "footnote_id", limit: 8
155
- end
156
-
157
- create_table "group_of_lines", force: true do |t|
158
- t.string "objectid", null: false
159
- t.integer "object_version"
160
- t.datetime "creation_time"
161
- t.string "creator_id"
162
- t.string "name"
163
- t.string "comment"
164
- t.string "registration_number"
165
- end
166
-
167
- add_index "group_of_lines", ["objectid"], name: "group_of_lines_objectid_key", unique: true, using: :btree
168
-
169
- create_table "group_of_lines_lines", id: false, force: true do |t|
170
- t.integer "group_of_line_id", limit: 8
171
- t.integer "line_id", limit: 8
172
- end
173
-
174
- create_table "journey_patterns", force: true do |t|
175
- t.integer "route_id", limit: 8
176
- t.string "objectid", null: false
177
- t.integer "object_version"
178
- t.datetime "creation_time"
179
- t.string "creator_id"
180
- t.string "name"
181
- t.string "comment"
182
- t.string "registration_number"
183
- t.string "published_name"
184
- t.integer "departure_stop_point_id", limit: 8
185
- t.integer "arrival_stop_point_id", limit: 8
186
- end
187
-
188
- add_index "journey_patterns", ["objectid"], name: "journey_patterns_objectid_key", unique: true, using: :btree
189
-
190
- create_table "journey_patterns_stop_points", id: false, force: true do |t|
191
- t.integer "journey_pattern_id", limit: 8
192
- t.integer "stop_point_id", limit: 8
193
- end
194
-
195
- add_index "journey_patterns_stop_points", ["journey_pattern_id"], name: "index_journey_pattern_id_on_journey_patterns_stop_points", using: :btree
196
-
197
- create_table "lines", force: true do |t|
198
- t.integer "network_id", limit: 8
199
- t.integer "company_id", limit: 8
200
- t.string "objectid", null: false
201
- t.integer "object_version"
202
- t.datetime "creation_time"
203
- t.string "creator_id"
204
- t.string "name"
205
- t.string "number"
206
- t.string "published_name"
207
- t.string "transport_mode_name"
208
- t.string "registration_number"
209
- t.string "comment"
210
- t.boolean "mobility_restricted_suitability"
211
- t.integer "int_user_needs"
212
- t.boolean "flexible_service"
213
- t.string "url"
214
- t.string "color", limit: 6
215
- t.string "text_color", limit: 6
216
- end
217
-
218
- add_index "lines", ["objectid"], name: "lines_objectid_key", unique: true, using: :btree
219
- add_index "lines", ["registration_number"], name: "lines_registration_number_key", unique: true, using: :btree
220
-
221
- create_table "networks", force: true do |t|
222
- t.string "objectid", null: false
223
- t.integer "object_version"
224
- t.datetime "creation_time"
225
- t.string "creator_id"
226
- t.date "version_date"
227
- t.string "description"
228
- t.string "name"
229
- t.string "registration_number"
230
- t.string "source_name"
231
- t.string "source_type"
232
- t.string "source_identifier"
233
- t.string "comment"
234
- end
235
-
236
- add_index "networks", ["objectid"], name: "networks_objectid_key", unique: true, using: :btree
237
- add_index "networks", ["registration_number"], name: "networks_registration_number_key", unique: true, using: :btree
238
-
239
- create_table "pt_links", force: true do |t|
240
- t.integer "start_of_link_id", limit: 8
241
- t.integer "end_of_link_id", limit: 8
242
- t.integer "route_id", limit: 8
243
- t.string "objectid", null: false
244
- t.integer "object_version"
245
- t.datetime "creation_time"
246
- t.string "creator_id"
247
- t.string "name"
248
- t.string "comment"
249
- t.decimal "link_distance", precision: 19, scale: 2
250
- end
251
-
252
- add_index "pt_links", ["objectid"], name: "pt_links_objectid_key", unique: true, using: :btree
253
-
254
- create_table "routes", force: true do |t|
255
- t.integer "line_id", limit: 8
256
- t.string "objectid", null: false
257
- t.integer "object_version"
258
- t.datetime "creation_time"
259
- t.string "creator_id"
260
- t.string "name"
261
- t.string "comment"
262
- t.integer "opposite_route_id", limit: 8
263
- t.string "published_name"
264
- t.string "number"
265
- t.string "direction"
266
- t.string "wayback"
267
- end
268
-
269
- add_index "routes", ["objectid"], name: "routes_objectid_key", unique: true, using: :btree
270
-
271
- create_table "routing_constraints_lines", id: false, force: true do |t|
272
- t.integer "stop_area_id", limit: 8
273
- t.integer "line_id", limit: 8
274
- end
275
-
276
- create_table "stop_areas", force: true do |t|
277
- t.integer "parent_id", limit: 8
278
- t.string "objectid", null: false
279
- t.integer "object_version"
280
- t.datetime "creation_time"
281
- t.string "creator_id"
282
- t.string "name"
283
- t.string "comment"
284
- t.string "area_type"
285
- t.string "registration_number"
286
- t.string "nearest_topic_name"
287
- t.integer "fare_code"
288
- t.decimal "longitude", precision: 19, scale: 16
289
- t.decimal "latitude", precision: 19, scale: 16
290
- t.string "long_lat_type"
291
- t.string "country_code"
292
- t.string "street_name"
293
- t.boolean "mobility_restricted_suitability"
294
- t.boolean "stairs_availability"
295
- t.boolean "lift_availability"
296
- t.integer "int_user_needs"
297
- t.string "zip_code"
298
- t.string "city_name"
299
- t.string "url"
300
- t.string "time_zone"
301
- end
302
-
303
- add_index "stop_areas", ["objectid"], name: "stop_areas_objectid_key", unique: true, using: :btree
304
- add_index "stop_areas", ["parent_id"], name: "index_stop_areas_on_parent_id", using: :btree
305
-
306
- create_table "stop_areas_stop_areas", id: false, force: true do |t|
307
- t.integer "child_id", limit: 8
308
- t.integer "parent_id", limit: 8
309
- end
310
-
311
- create_table "stop_points", force: true do |t|
312
- t.integer "route_id", limit: 8
313
- t.integer "stop_area_id", limit: 8
314
- t.string "objectid", null: false
315
- t.integer "object_version"
316
- t.datetime "creation_time"
317
- t.string "creator_id"
318
- t.integer "position"
319
- t.string "for_boarding"
320
- t.string "for_alighting"
321
- end
322
-
323
- add_index "stop_points", ["objectid"], name: "stop_points_objectid_key", unique: true, using: :btree
324
-
325
- create_table "taggings", force: true do |t|
326
- t.integer "tag_id"
327
- t.integer "taggable_id"
328
- t.string "taggable_type"
329
- t.integer "tagger_id"
330
- t.string "tagger_type"
331
- t.string "context", limit: 128
332
- t.datetime "created_at"
333
- end
334
-
335
- add_index "taggings", ["tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type"], name: "taggings_idx", unique: true, using: :btree
336
- add_index "taggings", ["taggable_id", "taggable_type", "context"], name: "index_taggings_on_taggable_id_and_taggable_type_and_context", using: :btree
337
-
338
- create_table "tags", force: true do |t|
339
- t.string "name"
340
- t.integer "taggings_count", default: 0
341
- end
342
-
343
- add_index "tags", ["name"], name: "index_tags_on_name", unique: true, using: :btree
344
-
345
- create_table "time_slots", force: true do |t|
346
- t.string "objectid", null: false
347
- t.integer "object_version"
348
- t.datetime "creation_time"
349
- t.string "creator_id"
350
- t.string "name"
351
- t.time "beginning_slot_time"
352
- t.time "end_slot_time"
353
- t.time "first_departure_time_in_slot"
354
- t.time "last_departure_time_in_slot"
355
- end
356
-
357
- add_index "time_slots", ["objectid"], name: "time_slots_objectid_key", unique: true, using: :btree
358
-
359
- create_table "time_table_dates", force: true do |t|
360
- t.integer "time_table_id", limit: 8, null: false
361
- t.date "date"
362
- t.integer "position", null: false
363
- t.boolean "in_out"
364
- end
365
-
366
- add_index "time_table_dates", ["time_table_id"], name: "index_time_table_dates_on_time_table_id", using: :btree
367
-
368
- create_table "time_table_periods", force: true do |t|
369
- t.integer "time_table_id", limit: 8, null: false
370
- t.date "period_start"
371
- t.date "period_end"
372
- t.integer "position", null: false
373
- end
374
-
375
- add_index "time_table_periods", ["time_table_id"], name: "index_time_table_periods_on_time_table_id", using: :btree
376
-
377
- create_table "time_tables", force: true do |t|
378
- t.string "objectid", null: false
379
- t.integer "object_version", default: 1
380
- t.datetime "creation_time"
381
- t.string "creator_id"
382
- t.string "version"
383
- t.string "comment"
384
- t.integer "int_day_types", default: 0
385
- t.date "start_date"
386
- t.date "end_date"
387
- end
388
-
389
- add_index "time_tables", ["objectid"], name: "time_tables_objectid_key", unique: true, using: :btree
390
-
391
- create_table "time_tables_vehicle_journeys", id: false, force: true do |t|
392
- t.integer "time_table_id", limit: 8
393
- t.integer "vehicle_journey_id", limit: 8
394
- end
395
-
396
- add_index "time_tables_vehicle_journeys", ["time_table_id"], name: "index_time_tables_vehicle_journeys_on_time_table_id", using: :btree
397
- add_index "time_tables_vehicle_journeys", ["vehicle_journey_id"], name: "index_time_tables_vehicle_journeys_on_vehicle_journey_id", using: :btree
398
-
399
- create_table "vehicle_journey_at_stops", force: true do |t|
400
- t.integer "vehicle_journey_id", limit: 8
401
- t.integer "stop_point_id", limit: 8
402
- t.string "connecting_service_id"
403
- t.string "boarding_alighting_possibility"
404
- t.time "arrival_time"
405
- t.time "departure_time"
406
- t.time "waiting_time"
407
- t.time "elapse_duration"
408
- t.time "headway_frequency"
409
- t.string "for_boarding"
410
- t.string "for_alighting"
411
- end
412
-
413
- add_index "vehicle_journey_at_stops", ["stop_point_id"], name: "index_vehicle_journey_at_stops_on_stop_pointid", using: :btree
414
- add_index "vehicle_journey_at_stops", ["vehicle_journey_id"], name: "index_vehicle_journey_at_stops_on_vehicle_journey_id", using: :btree
415
-
416
- create_table "vehicle_journeys", force: true do |t|
417
- t.integer "route_id", limit: 8
418
- t.integer "journey_pattern_id", limit: 8
419
- t.integer "time_slot_id", limit: 8
420
- t.integer "company_id", limit: 8
421
- t.string "objectid", null: false
422
- t.integer "object_version"
423
- t.datetime "creation_time"
424
- t.string "creator_id"
425
- t.string "comment"
426
- t.string "status_value"
427
- t.string "transport_mode"
428
- t.string "published_journey_name"
429
- t.string "published_journey_identifier"
430
- t.string "facility"
431
- t.string "vehicle_type_identifier"
432
- t.integer "number", limit: 8
433
- t.boolean "mobility_restricted_suitability"
434
- t.boolean "flexible_service"
435
- end
436
-
437
- add_index "vehicle_journeys", ["objectid"], name: "vehicle_journeys_objectid_key", unique: true, using: :btree
438
- add_index "vehicle_journeys", ["route_id"], name: "index_vehicle_journeys_on_route_id", using: :btree
439
-
440
- add_foreign_key "access_links", "access_points", name: "aclk_acpt_fkey", dependent: :delete
441
- add_foreign_key "access_links", "stop_areas", name: "aclk_area_fkey", dependent: :delete
442
-
443
- add_foreign_key "access_points", "stop_areas", name: "access_area_fkey", dependent: :delete
444
-
445
- add_foreign_key "connection_links", "stop_areas", name: "colk_endarea_fkey", column: "arrival_id", dependent: :delete
446
- add_foreign_key "connection_links", "stop_areas", name: "colk_startarea_fkey", column: "departure_id", dependent: :delete
447
-
448
- add_foreign_key "group_of_lines_lines", "group_of_lines", name: "groupofline_group_fkey", dependent: :delete
449
- add_foreign_key "group_of_lines_lines", "lines", name: "groupofline_line_fkey", dependent: :delete
450
-
451
- add_foreign_key "journey_patterns", "routes", name: "jp_route_fkey", dependent: :delete
452
- add_foreign_key "journey_patterns", "stop_points", name: "arrival_point_fkey", column: "arrival_stop_point_id", dependent: :nullify
453
- add_foreign_key "journey_patterns", "stop_points", name: "departure_point_fkey", column: "departure_stop_point_id", dependent: :nullify
454
-
455
- add_foreign_key "journey_patterns_stop_points", "journey_patterns", name: "jpsp_jp_fkey", dependent: :delete
456
- add_foreign_key "journey_patterns_stop_points", "stop_points", name: "jpsp_stoppoint_fkey", dependent: :delete
457
-
458
- add_foreign_key "lines", "companies", name: "line_company_fkey", dependent: :nullify
459
- add_foreign_key "lines", "networks", name: "line_ptnetwork_fkey", dependent: :nullify
460
-
461
- add_foreign_key "routes", "lines", name: "route_line_fkey", dependent: :delete
462
- add_foreign_key "routes", "routes", name: "route_opposite_route_fkey", column: "opposite_route_id", dependent: :nullify
463
-
464
- add_foreign_key "routing_constraints_lines", "lines", name: "routingconstraint_line_fkey", dependent: :delete
465
- add_foreign_key "routing_constraints_lines", "stop_areas", name: "routingconstraint_stoparea_fkey", dependent: :delete
466
-
467
- add_foreign_key "stop_areas", "stop_areas", name: "area_parent_fkey", column: "parent_id", dependent: :nullify
468
-
469
- add_foreign_key "stop_areas_stop_areas", "stop_areas", name: "stoparea_child_fkey", column: "child_id", dependent: :delete
470
- add_foreign_key "stop_areas_stop_areas", "stop_areas", name: "stoparea_parent_fkey", column: "parent_id", dependent: :delete
471
-
472
- add_foreign_key "stop_points", "routes", name: "stoppoint_route_fkey", dependent: :delete
473
- add_foreign_key "stop_points", "stop_areas", name: "stoppoint_area_fkey"
474
-
475
- add_foreign_key "time_table_dates", "time_tables", name: "tm_date_fkey", dependent: :delete
476
-
477
- add_foreign_key "time_table_periods", "time_tables", name: "tm_period_fkey", dependent: :delete
478
-
479
- add_foreign_key "time_tables_vehicle_journeys", "time_tables", name: "vjtm_tm_fkey", dependent: :delete
480
- add_foreign_key "time_tables_vehicle_journeys", "vehicle_journeys", name: "vjtm_vj_fkey", dependent: :delete
481
-
482
- add_foreign_key "vehicle_journey_at_stops", "stop_points", name: "vjas_sp_fkey", dependent: :delete
483
- add_foreign_key "vehicle_journey_at_stops", "vehicle_journeys", name: "vjas_vj_fkey", dependent: :delete
484
-
485
- add_foreign_key "vehicle_journeys", "companies", name: "vj_company_fkey", dependent: :nullify
486
- add_foreign_key "vehicle_journeys", "journey_patterns", name: "vj_jp_fkey", dependent: :delete
487
- add_foreign_key "vehicle_journeys", "routes", name: "vj_route_fkey", dependent: :delete
488
-
489
- end