ninoxe 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +5 -13
  2. data/app/models/chouette/footnote.rb +7 -0
  3. data/app/models/chouette/line.rb +6 -1
  4. data/app/models/chouette/vehicle_journey.rb +7 -4
  5. data/db/migrate/20150115153453_create_footnotes.rb +11 -0
  6. data/db/migrate/20150119160029_create_vehicle_journey_footnotes.rb +8 -0
  7. data/lib/factories/chouette_footnotes.rb +6 -0
  8. data/lib/ninoxe/version.rb +1 -1
  9. data/spec/dummy/README.rdoc +261 -0
  10. data/spec/dummy/Rakefile +6 -0
  11. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  12. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  13. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  14. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  15. data/spec/dummy/app/mailers/.gitkeep +0 -0
  16. data/spec/dummy/app/models/.gitkeep +0 -0
  17. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  18. data/spec/dummy/config/application.rb +56 -0
  19. data/spec/dummy/config/boot.rb +10 -0
  20. data/{config/database.yml.me → spec/dummy/config/database.yml} +2 -2
  21. data/spec/dummy/config/environment.rb +7 -0
  22. data/spec/dummy/config/environments/development.rb +37 -0
  23. data/spec/dummy/config/environments/production.rb +67 -0
  24. data/spec/dummy/config/environments/test.rb +37 -0
  25. data/spec/dummy/config/initializers/active_record.rb +2 -0
  26. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  27. data/spec/dummy/config/initializers/inflections.rb +15 -0
  28. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  29. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  30. data/spec/dummy/config/initializers/session_store.rb +8 -0
  31. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  32. data/spec/dummy/config/locales/en.yml +5 -0
  33. data/spec/dummy/config/routes.rb +4 -0
  34. data/spec/dummy/config.ru +4 -0
  35. data/spec/dummy/db/schema.rb +485 -0
  36. data/spec/dummy/db/test.sqlite3 +0 -0
  37. data/spec/dummy/lib/assets/.gitkeep +0 -0
  38. data/spec/dummy/log/.gitkeep +0 -0
  39. data/spec/dummy/public/404.html +26 -0
  40. data/spec/dummy/public/422.html +26 -0
  41. data/spec/dummy/public/500.html +25 -0
  42. data/spec/dummy/public/favicon.ico +0 -0
  43. data/spec/dummy/script/rails +6 -0
  44. data/spec/models/chouette/access_link_spec.rb +78 -0
  45. data/spec/models/chouette/access_point_spec.rb +266 -0
  46. data/spec/models/chouette/active_record_spec.rb +121 -0
  47. data/spec/models/chouette/area_type_spec.rb +53 -0
  48. data/spec/models/chouette/company_spec.rb +51 -0
  49. data/spec/models/chouette/connection_link_spec.rb +56 -0
  50. data/spec/models/chouette/direction_spec.rb +60 -0
  51. data/spec/models/chouette/exporter_spec.rb +28 -0
  52. data/spec/models/chouette/file_validator_spec.rb +28 -0
  53. data/spec/models/chouette/footnote_spec.rb +9 -0
  54. data/spec/models/chouette/group_of_line_spec.rb +31 -0
  55. data/spec/models/chouette/journey_pattern_spec.rb +62 -0
  56. data/spec/models/chouette/line_spec.rb +119 -0
  57. data/spec/models/chouette/loader_spec.rb +69 -0
  58. data/spec/models/chouette/network_spec.rb +22 -0
  59. data/spec/models/chouette/object_id_spec.rb +146 -0
  60. data/spec/models/chouette/route_spec.rb +234 -0
  61. data/spec/models/chouette/stop_area_spec.rb +440 -0
  62. data/spec/models/chouette/stop_point_spec.rb +38 -0
  63. data/spec/models/chouette/time_table_period_spec.rb +66 -0
  64. data/spec/models/chouette/time_table_spec.rb +1218 -0
  65. data/spec/models/chouette/transport_mode_spec.rb +64 -0
  66. data/spec/models/chouette/trident_active_record_spec.rb +115 -0
  67. data/spec/models/chouette/vehicle_journey_at_stop_spec.rb +46 -0
  68. data/spec/models/chouette/vehicle_journey_spec.rb +223 -0
  69. data/spec/presenters/chouette/geometry/general_presenter.rb +1 -0
  70. data/spec/presenters/chouette/geometry/line_presenter_spec.rb +13 -0
  71. data/spec/spec_helper.rb +45 -0
  72. metadata +160 -33
  73. data/app/models/chouette/time_table_vehicle_journey.rb +0 -5
  74. data/lib/ninoxe.rb~ +0 -7
@@ -0,0 +1,37 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Configure static asset server for tests with Cache-Control for performance
11
+ config.serve_static_assets = true
12
+ config.static_cache_control = "public, max-age=3600"
13
+
14
+ # Log error messages when you accidentally call methods on nil
15
+ config.whiny_nils = true
16
+
17
+ # Show full error reports and disable caching
18
+ config.consider_all_requests_local = true
19
+ config.action_controller.perform_caching = false
20
+
21
+ # Raise exceptions instead of rendering exception templates
22
+ config.action_dispatch.show_exceptions = false
23
+
24
+ # Disable request forgery protection in test environment
25
+ config.action_controller.allow_forgery_protection = false
26
+
27
+ # Tell Action Mailer not to deliver emails to the real world.
28
+ # The :test delivery method accumulates sent emails in the
29
+ # ActionMailer::Base.deliveries array.
30
+ config.action_mailer.delivery_method = :test
31
+
32
+ # Raise exception on mass assignment protection for Active Record models
33
+ #config.active_record.mass_assignment_sanitizer = :strict
34
+
35
+ # Print deprecation notices to the stderr
36
+ config.active_support.deprecation = :stderr
37
+ end
@@ -0,0 +1,2 @@
1
+ ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::NATIVE_DATABASE_TYPES[:primary_key] = "bigserial primary key"
2
+
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,15 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
11
+ #
12
+ # These inflection rules are supported but not enabled by default:
13
+ # ActiveSupport::Inflector.inflections do |inflect|
14
+ # inflect.acronym 'RESTful'
15
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = '1d0189a5af958cad469930557a3057cf1e8f8eec7cee5743100c1fa98901b49581c3a346745bda1e2033b00a0e62b65002e553b341b5583356eca538c31d010c'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters :format => [:json]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+
3
+ mount Ninoxe::Engine => "/ninoxe"
4
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
@@ -0,0 +1,485 @@
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 to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20150119160029) do
15
+
16
+ create_table "access_links", :force => true do |t|
17
+ t.integer "access_point_id", :limit => 8
18
+ t.integer "stop_area_id", :limit => 8
19
+ t.string "objectid", :null => false
20
+ t.integer "object_version"
21
+ t.datetime "creation_time"
22
+ t.string "creator_id"
23
+ t.string "name"
24
+ t.string "comment"
25
+ t.decimal "link_distance", :precision => 19, :scale => 2
26
+ t.boolean "lift_availability"
27
+ t.boolean "mobility_restricted_suitability"
28
+ t.boolean "stairs_availability"
29
+ t.time "default_duration"
30
+ t.time "frequent_traveller_duration"
31
+ t.time "occasional_traveller_duration"
32
+ t.time "mobility_restricted_traveller_duration"
33
+ t.string "link_type"
34
+ t.integer "int_user_needs"
35
+ t.string "link_orientation"
36
+ end
37
+
38
+ add_index "access_links", ["objectid"], :name => "access_links_objectid_key", :unique => true
39
+
40
+ create_table "access_points", :force => true do |t|
41
+ t.string "objectid"
42
+ t.integer "object_version"
43
+ t.datetime "creation_time"
44
+ t.string "creator_id"
45
+ t.string "name"
46
+ t.string "comment"
47
+ t.decimal "longitude", :precision => 19, :scale => 16
48
+ t.decimal "latitude", :precision => 19, :scale => 16
49
+ t.string "long_lat_type"
50
+ t.string "country_code"
51
+ t.string "street_name"
52
+ t.string "contained_in"
53
+ t.time "openning_time"
54
+ t.time "closing_time"
55
+ t.string "access_type"
56
+ t.boolean "lift_availability"
57
+ t.boolean "mobility_restricted_suitability"
58
+ t.boolean "stairs_availability"
59
+ t.integer "stop_area_id", :limit => 8
60
+ t.string "zip_code"
61
+ t.string "city_name"
62
+ end
63
+
64
+ add_index "access_points", ["objectid"], :name => "access_points_objectid_key", :unique => true
65
+
66
+ create_table "companies", :force => true do |t|
67
+ t.string "objectid", :null => false
68
+ t.integer "object_version"
69
+ t.datetime "creation_time"
70
+ t.string "creator_id"
71
+ t.string "name"
72
+ t.string "short_name"
73
+ t.string "organizational_unit"
74
+ t.string "operating_department_name"
75
+ t.string "code"
76
+ t.string "phone"
77
+ t.string "fax"
78
+ t.string "email"
79
+ t.string "registration_number"
80
+ t.string "url"
81
+ t.string "time_zone"
82
+ end
83
+
84
+ add_index "companies", ["objectid"], :name => "companies_objectid_key", :unique => true
85
+ add_index "companies", ["registration_number"], :name => "companies_registration_number_key", :unique => true
86
+
87
+ create_table "connection_links", :force => true do |t|
88
+ t.integer "departure_id", :limit => 8
89
+ t.integer "arrival_id", :limit => 8
90
+ t.string "objectid", :null => false
91
+ t.integer "object_version"
92
+ t.datetime "creation_time"
93
+ t.string "creator_id"
94
+ t.string "name"
95
+ t.string "comment"
96
+ t.decimal "link_distance", :precision => 19, :scale => 2
97
+ t.string "link_type"
98
+ t.time "default_duration"
99
+ t.time "frequent_traveller_duration"
100
+ t.time "occasional_traveller_duration"
101
+ t.time "mobility_restricted_traveller_duration"
102
+ t.boolean "mobility_restricted_suitability"
103
+ t.boolean "stairs_availability"
104
+ t.boolean "lift_availability"
105
+ t.integer "int_user_needs"
106
+ end
107
+
108
+ add_index "connection_links", ["objectid"], :name => "connection_links_objectid_key", :unique => true
109
+
110
+ create_table "facilities", :force => true do |t|
111
+ t.integer "stop_area_id", :limit => 8
112
+ t.integer "line_id", :limit => 8
113
+ t.integer "connection_link_id", :limit => 8
114
+ t.integer "stop_point_id", :limit => 8
115
+ t.string "objectid", :null => false
116
+ t.integer "object_version"
117
+ t.datetime "creation_time"
118
+ t.string "creator_id"
119
+ t.string "name"
120
+ t.string "comment"
121
+ t.string "description"
122
+ t.boolean "free_access"
123
+ t.decimal "longitude", :precision => 19, :scale => 16
124
+ t.decimal "latitude", :precision => 19, :scale => 16
125
+ t.string "long_lat_type"
126
+ t.decimal "x", :precision => 19, :scale => 2
127
+ t.decimal "y", :precision => 19, :scale => 2
128
+ t.string "projection_type"
129
+ t.string "country_code"
130
+ t.string "street_name"
131
+ t.string "contained_in"
132
+ end
133
+
134
+ add_index "facilities", ["objectid"], :name => "facilities_objectid_key", :unique => true
135
+
136
+ create_table "facilities_features", :id => false, :force => true do |t|
137
+ t.integer "facility_id", :limit => 8
138
+ t.integer "choice_code"
139
+ end
140
+
141
+ create_table "footnotes", :force => true do |t|
142
+ t.integer "line_id", :limit => 8
143
+ t.string "code"
144
+ t.string "label"
145
+ t.datetime "created_at", :null => false
146
+ t.datetime "updated_at", :null => false
147
+ end
148
+
149
+ create_table "footnotes_vehicle_journeys", :id => false, :force => true do |t|
150
+ t.integer "vehicle_journey_id", :limit => 8
151
+ t.integer "footnote_id", :limit => 8
152
+ end
153
+
154
+ create_table "group_of_lines", :force => true do |t|
155
+ t.string "objectid", :null => false
156
+ t.integer "object_version"
157
+ t.datetime "creation_time"
158
+ t.string "creator_id"
159
+ t.string "name"
160
+ t.string "comment"
161
+ t.string "registration_number"
162
+ end
163
+
164
+ add_index "group_of_lines", ["objectid"], :name => "group_of_lines_objectid_key", :unique => true
165
+
166
+ create_table "group_of_lines_lines", :id => false, :force => true do |t|
167
+ t.integer "group_of_line_id", :limit => 8
168
+ t.integer "line_id", :limit => 8
169
+ end
170
+
171
+ create_table "journey_patterns", :force => true do |t|
172
+ t.integer "route_id", :limit => 8
173
+ t.string "objectid", :null => false
174
+ t.integer "object_version"
175
+ t.datetime "creation_time"
176
+ t.string "creator_id"
177
+ t.string "name"
178
+ t.string "comment"
179
+ t.string "registration_number"
180
+ t.string "published_name"
181
+ t.integer "departure_stop_point_id", :limit => 8
182
+ t.integer "arrival_stop_point_id", :limit => 8
183
+ end
184
+
185
+ add_index "journey_patterns", ["objectid"], :name => "journey_patterns_objectid_key", :unique => true
186
+
187
+ create_table "journey_patterns_stop_points", :id => false, :force => true do |t|
188
+ t.integer "journey_pattern_id", :limit => 8
189
+ t.integer "stop_point_id", :limit => 8
190
+ end
191
+
192
+ add_index "journey_patterns_stop_points", ["journey_pattern_id"], :name => "index_journey_pattern_id_on_journey_patterns_stop_points"
193
+
194
+ create_table "lines", :force => true do |t|
195
+ t.integer "network_id", :limit => 8
196
+ t.integer "company_id", :limit => 8
197
+ t.string "objectid", :null => false
198
+ t.integer "object_version"
199
+ t.datetime "creation_time"
200
+ t.string "creator_id"
201
+ t.string "name"
202
+ t.string "number"
203
+ t.string "published_name"
204
+ t.string "transport_mode_name"
205
+ t.string "registration_number"
206
+ t.string "comment"
207
+ t.boolean "mobility_restricted_suitability"
208
+ t.integer "int_user_needs"
209
+ t.boolean "flexible_service"
210
+ t.string "url"
211
+ t.string "color", :limit => 6
212
+ t.string "text_color", :limit => 6
213
+ end
214
+
215
+ add_index "lines", ["objectid"], :name => "lines_objectid_key", :unique => true
216
+ add_index "lines", ["registration_number"], :name => "lines_registration_number_key", :unique => true
217
+
218
+ create_table "networks", :force => true do |t|
219
+ t.string "objectid", :null => false
220
+ t.integer "object_version"
221
+ t.datetime "creation_time"
222
+ t.string "creator_id"
223
+ t.date "version_date"
224
+ t.string "description"
225
+ t.string "name"
226
+ t.string "registration_number"
227
+ t.string "source_name"
228
+ t.string "source_type"
229
+ t.string "source_identifier"
230
+ t.string "comment"
231
+ end
232
+
233
+ add_index "networks", ["objectid"], :name => "networks_objectid_key", :unique => true
234
+ add_index "networks", ["registration_number"], :name => "networks_registration_number_key", :unique => true
235
+
236
+ create_table "pt_links", :force => true do |t|
237
+ t.integer "start_of_link_id", :limit => 8
238
+ t.integer "end_of_link_id", :limit => 8
239
+ t.integer "route_id", :limit => 8
240
+ t.string "objectid", :null => false
241
+ t.integer "object_version"
242
+ t.datetime "creation_time"
243
+ t.string "creator_id"
244
+ t.string "name"
245
+ t.string "comment"
246
+ t.decimal "link_distance", :precision => 19, :scale => 2
247
+ end
248
+
249
+ add_index "pt_links", ["objectid"], :name => "pt_links_objectid_key", :unique => true
250
+
251
+ create_table "routes", :force => true do |t|
252
+ t.integer "line_id", :limit => 8
253
+ t.string "objectid", :null => false
254
+ t.integer "object_version"
255
+ t.datetime "creation_time"
256
+ t.string "creator_id"
257
+ t.string "name"
258
+ t.string "comment"
259
+ t.integer "opposite_route_id", :limit => 8
260
+ t.string "published_name"
261
+ t.string "number"
262
+ t.string "direction"
263
+ t.string "wayback"
264
+ end
265
+
266
+ add_index "routes", ["objectid"], :name => "routes_objectid_key", :unique => true
267
+
268
+ create_table "routing_constraints_lines", :id => false, :force => true do |t|
269
+ t.integer "stop_area_id", :limit => 8
270
+ t.integer "line_id", :limit => 8
271
+ end
272
+
273
+ create_table "stop_areas", :force => true do |t|
274
+ t.integer "parent_id", :limit => 8
275
+ t.string "objectid", :null => false
276
+ t.integer "object_version"
277
+ t.datetime "creation_time"
278
+ t.string "creator_id"
279
+ t.string "name"
280
+ t.string "comment"
281
+ t.string "area_type"
282
+ t.string "registration_number"
283
+ t.string "nearest_topic_name"
284
+ t.integer "fare_code"
285
+ t.decimal "longitude", :precision => 19, :scale => 16
286
+ t.decimal "latitude", :precision => 19, :scale => 16
287
+ t.string "long_lat_type"
288
+ t.string "country_code"
289
+ t.string "street_name"
290
+ t.boolean "mobility_restricted_suitability"
291
+ t.boolean "stairs_availability"
292
+ t.boolean "lift_availability"
293
+ t.integer "int_user_needs"
294
+ t.string "zip_code"
295
+ t.string "city_name"
296
+ t.string "url"
297
+ t.string "time_zone"
298
+ end
299
+
300
+ add_index "stop_areas", ["objectid"], :name => "stop_areas_objectid_key", :unique => true
301
+ add_index "stop_areas", ["parent_id"], :name => "index_stop_areas_on_parent_id"
302
+
303
+ create_table "stop_areas_stop_areas", :id => false, :force => true do |t|
304
+ t.integer "child_id", :limit => 8
305
+ t.integer "parent_id", :limit => 8
306
+ end
307
+
308
+ create_table "stop_points", :force => true do |t|
309
+ t.integer "route_id", :limit => 8
310
+ t.integer "stop_area_id", :limit => 8
311
+ t.string "objectid", :null => false
312
+ t.integer "object_version"
313
+ t.datetime "creation_time"
314
+ t.string "creator_id"
315
+ t.integer "position"
316
+ t.string "for_boarding"
317
+ t.string "for_alighting"
318
+ end
319
+
320
+ add_index "stop_points", ["objectid"], :name => "stop_points_objectid_key", :unique => true
321
+
322
+ create_table "taggings", :force => true do |t|
323
+ t.integer "tag_id"
324
+ t.integer "taggable_id"
325
+ t.string "taggable_type"
326
+ t.integer "tagger_id"
327
+ t.string "tagger_type"
328
+ t.string "context", :limit => 128
329
+ t.datetime "created_at"
330
+ end
331
+
332
+ add_index "taggings", ["tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type"], :name => "taggings_idx", :unique => true
333
+ add_index "taggings", ["taggable_id", "taggable_type", "context"], :name => "index_taggings_on_taggable_id_and_taggable_type_and_context"
334
+
335
+ create_table "tags", :force => true do |t|
336
+ t.string "name"
337
+ t.integer "taggings_count", :default => 0
338
+ end
339
+
340
+ add_index "tags", ["name"], :name => "index_tags_on_name", :unique => true
341
+
342
+ create_table "time_slots", :force => true do |t|
343
+ t.string "objectid", :null => false
344
+ t.integer "object_version"
345
+ t.datetime "creation_time"
346
+ t.string "creator_id"
347
+ t.string "name"
348
+ t.time "beginning_slot_time"
349
+ t.time "end_slot_time"
350
+ t.time "first_departure_time_in_slot"
351
+ t.time "last_departure_time_in_slot"
352
+ end
353
+
354
+ add_index "time_slots", ["objectid"], :name => "time_slots_objectid_key", :unique => true
355
+
356
+ create_table "time_table_dates", :force => true do |t|
357
+ t.integer "time_table_id", :limit => 8, :null => false
358
+ t.date "date"
359
+ t.integer "position", :null => false
360
+ t.boolean "in_out"
361
+ end
362
+
363
+ add_index "time_table_dates", ["time_table_id"], :name => "index_time_table_dates_on_time_table_id"
364
+
365
+ create_table "time_table_periods", :force => true do |t|
366
+ t.integer "time_table_id", :limit => 8, :null => false
367
+ t.date "period_start"
368
+ t.date "period_end"
369
+ t.integer "position", :null => false
370
+ end
371
+
372
+ add_index "time_table_periods", ["time_table_id"], :name => "index_time_table_periods_on_time_table_id"
373
+
374
+ create_table "time_tables", :force => true do |t|
375
+ t.string "objectid", :null => false
376
+ t.integer "object_version", :default => 1
377
+ t.datetime "creation_time"
378
+ t.string "creator_id"
379
+ t.string "version"
380
+ t.string "comment"
381
+ t.integer "int_day_types", :default => 0
382
+ t.date "start_date"
383
+ t.date "end_date"
384
+ end
385
+
386
+ add_index "time_tables", ["objectid"], :name => "time_tables_objectid_key", :unique => true
387
+
388
+ create_table "time_tables_vehicle_journeys", :id => false, :force => true do |t|
389
+ t.integer "time_table_id", :limit => 8
390
+ t.integer "vehicle_journey_id", :limit => 8
391
+ end
392
+
393
+ add_index "time_tables_vehicle_journeys", ["time_table_id"], :name => "index_time_tables_vehicle_journeys_on_time_table_id"
394
+ add_index "time_tables_vehicle_journeys", ["vehicle_journey_id"], :name => "index_time_tables_vehicle_journeys_on_vehicle_journey_id"
395
+
396
+ create_table "vehicle_journey_at_stops", :force => true do |t|
397
+ t.integer "vehicle_journey_id", :limit => 8
398
+ t.integer "stop_point_id", :limit => 8
399
+ t.string "connecting_service_id"
400
+ t.string "boarding_alighting_possibility"
401
+ t.time "arrival_time"
402
+ t.time "departure_time"
403
+ t.time "waiting_time"
404
+ t.time "elapse_duration"
405
+ t.time "headway_frequency"
406
+ t.string "for_boarding"
407
+ t.string "for_alighting"
408
+ end
409
+
410
+ add_index "vehicle_journey_at_stops", ["stop_point_id"], :name => "index_vehicle_journey_at_stops_on_stop_pointid"
411
+ add_index "vehicle_journey_at_stops", ["vehicle_journey_id"], :name => "index_vehicle_journey_at_stops_on_vehicle_journey_id"
412
+
413
+ create_table "vehicle_journeys", :force => true do |t|
414
+ t.integer "route_id", :limit => 8
415
+ t.integer "journey_pattern_id", :limit => 8
416
+ t.integer "time_slot_id", :limit => 8
417
+ t.integer "company_id", :limit => 8
418
+ t.string "objectid", :null => false
419
+ t.integer "object_version"
420
+ t.datetime "creation_time"
421
+ t.string "creator_id"
422
+ t.string "comment"
423
+ t.string "status_value"
424
+ t.string "transport_mode"
425
+ t.string "published_journey_name"
426
+ t.string "published_journey_identifier"
427
+ t.string "facility"
428
+ t.string "vehicle_type_identifier"
429
+ t.integer "number", :limit => 8
430
+ t.boolean "mobility_restricted_suitability"
431
+ t.boolean "flexible_service"
432
+ end
433
+
434
+ add_index "vehicle_journeys", ["objectid"], :name => "vehicle_journeys_objectid_key", :unique => true
435
+ add_index "vehicle_journeys", ["route_id"], :name => "index_vehicle_journeys_on_route_id"
436
+
437
+ add_foreign_key "access_links", "access_points", name: "aclk_acpt_fkey", dependent: :delete
438
+ add_foreign_key "access_links", "stop_areas", name: "aclk_area_fkey", dependent: :delete
439
+
440
+ add_foreign_key "access_points", "stop_areas", name: "access_area_fkey", dependent: :delete
441
+
442
+ add_foreign_key "connection_links", "stop_areas", name: "colk_endarea_fkey", column: "arrival_id", dependent: :delete
443
+ add_foreign_key "connection_links", "stop_areas", name: "colk_startarea_fkey", column: "departure_id", dependent: :delete
444
+
445
+ add_foreign_key "group_of_lines_lines", "group_of_lines", name: "groupofline_group_fkey", dependent: :delete
446
+ add_foreign_key "group_of_lines_lines", "lines", name: "groupofline_line_fkey", dependent: :delete
447
+
448
+ add_foreign_key "journey_patterns", "routes", name: "jp_route_fkey", dependent: :delete
449
+ add_foreign_key "journey_patterns", "stop_points", name: "arrival_point_fkey", column: "arrival_stop_point_id", dependent: :nullify
450
+ add_foreign_key "journey_patterns", "stop_points", name: "departure_point_fkey", column: "departure_stop_point_id", dependent: :nullify
451
+
452
+ add_foreign_key "journey_patterns_stop_points", "journey_patterns", name: "jpsp_jp_fkey", dependent: :delete
453
+ add_foreign_key "journey_patterns_stop_points", "stop_points", name: "jpsp_stoppoint_fkey", dependent: :delete
454
+
455
+ add_foreign_key "lines", "companies", name: "line_company_fkey", dependent: :nullify
456
+ add_foreign_key "lines", "networks", name: "line_ptnetwork_fkey", dependent: :nullify
457
+
458
+ add_foreign_key "routes", "lines", name: "route_line_fkey", dependent: :delete
459
+
460
+ add_foreign_key "routing_constraints_lines", "lines", name: "routingconstraint_line_fkey", dependent: :delete
461
+ add_foreign_key "routing_constraints_lines", "stop_areas", name: "routingconstraint_stoparea_fkey", dependent: :delete
462
+
463
+ add_foreign_key "stop_areas", "stop_areas", name: "area_parent_fkey", column: "parent_id", dependent: :nullify
464
+
465
+ add_foreign_key "stop_areas_stop_areas", "stop_areas", name: "stoparea_child_fkey", column: "child_id", dependent: :delete
466
+ add_foreign_key "stop_areas_stop_areas", "stop_areas", name: "stoparea_parent_fkey", column: "parent_id", dependent: :delete
467
+
468
+ add_foreign_key "stop_points", "routes", name: "stoppoint_route_fkey", dependent: :delete
469
+ add_foreign_key "stop_points", "stop_areas", name: "stoppoint_area_fkey"
470
+
471
+ add_foreign_key "time_table_dates", "time_tables", name: "tm_date_fkey", dependent: :delete
472
+
473
+ add_foreign_key "time_table_periods", "time_tables", name: "tm_period_fkey", dependent: :delete
474
+
475
+ add_foreign_key "time_tables_vehicle_journeys", "time_tables", name: "vjtm_tm_fkey", dependent: :delete
476
+ add_foreign_key "time_tables_vehicle_journeys", "vehicle_journeys", name: "vjtm_vj_fkey", dependent: :delete
477
+
478
+ add_foreign_key "vehicle_journey_at_stops", "stop_points", name: "vjas_sp_fkey", dependent: :delete
479
+ add_foreign_key "vehicle_journey_at_stops", "vehicle_journeys", name: "vjas_vj_fkey", dependent: :delete
480
+
481
+ add_foreign_key "vehicle_journeys", "companies", name: "vj_company_fkey", dependent: :nullify
482
+ add_foreign_key "vehicle_journeys", "journey_patterns", name: "vj_jp_fkey", dependent: :delete
483
+ add_foreign_key "vehicle_journeys", "routes", name: "vj_route_fkey", dependent: :delete
484
+
485
+ end
File without changes
File without changes
File without changes
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>