ninoxe 1.1.5 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +9 -12
- data/app/models/chouette/access_link.rb +52 -51
- data/app/models/chouette/access_point.rb +7 -7
- data/app/models/chouette/active_record.rb +28 -28
- data/app/models/chouette/company.rb +3 -3
- data/app/models/chouette/connection_link.rb +3 -3
- data/app/models/chouette/footnote.rb +1 -1
- data/app/models/chouette/group_of_line.rb +2 -2
- data/app/models/chouette/journey_pattern.rb +7 -3
- data/app/models/chouette/line.rb +11 -9
- data/app/models/chouette/network.rb +2 -2
- data/app/models/chouette/pt_link.rb +1 -1
- data/app/models/chouette/route.rb +9 -10
- data/app/models/chouette/stop_area.rb +8 -8
- data/app/models/chouette/stop_point.rb +3 -3
- data/app/models/chouette/time_table.rb +25 -122
- data/app/models/chouette/time_table_date.rb +1 -1
- data/app/models/chouette/time_table_period.rb +1 -1
- data/app/models/chouette/vehicle_journey.rb +82 -77
- data/app/models/chouette/vehicle_journey_at_stop.rb +1 -1
- data/config/database.yml +16 -8
- data/config/database.yml.travis +15 -6
- data/db/migrate/20150526075108_add_foreign_key_to_routes.rb +28 -0
- data/lib/ninoxe/engine.rb +4 -0
- data/lib/ninoxe/version.rb +1 -1
- data/lib/ninoxe.rb +3 -0
- data/spec/dummy/README.rdoc +15 -248
- data/spec/dummy/Rakefile +1 -1
- data/spec/dummy/app/{mailers/.gitkeep → assets/images/.keep} +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +3 -5
- data/spec/dummy/app/assets/stylesheets/application.css +1 -1
- data/spec/dummy/app/controllers/application_controller.rb +3 -1
- data/spec/dummy/app/{models/.gitkeep → controllers/concerns/.keep} +0 -0
- data/spec/dummy/{lib/assets/.gitkeep → app/mailers/.keep} +0 -0
- data/spec/dummy/{log/.gitkeep → app/models/.keep} +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +2 -2
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config/application.rb +8 -36
- data/spec/dummy/config/boot.rb +4 -9
- data/spec/dummy/config/database.yml +16 -8
- data/spec/dummy/config/environment.rb +2 -4
- data/spec/dummy/config/environments/development.rb +11 -19
- data/spec/dummy/config/environments/production.rb +41 -28
- data/spec/dummy/config/environments/test.rb +13 -14
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +6 -5
- data/spec/dummy/config/initializers/secret_token.rb +7 -2
- data/spec/dummy/config/initializers/session_store.rb +1 -6
- data/spec/dummy/config/initializers/wrap_parameters.rb +6 -6
- data/spec/dummy/config/locales/en.yml +20 -2
- data/spec/dummy/config/locales/fr.yml +23 -0
- data/spec/dummy/config.ru +1 -1
- data/spec/dummy/db/schema.rb +147 -143
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +43 -11
- data/spec/dummy/public/422.html +43 -11
- data/spec/dummy/public/500.html +43 -11
- data/spec/dummy/script/rails +1 -1
- data/spec/factories/chouette_access_links.rb +13 -0
- data/spec/factories/chouette_access_points.rb +12 -0
- data/spec/factories/chouette_companies.rb +9 -0
- data/spec/factories/chouette_connection_links.rb +13 -0
- data/spec/factories/chouette_footnotes.rb +10 -0
- data/spec/factories/chouette_group_of_lines.rb +9 -0
- data/spec/factories/chouette_journey_pattern.rb +40 -0
- data/spec/factories/chouette_lines.rb +44 -0
- data/spec/factories/chouette_networks.rb +9 -0
- data/spec/factories/chouette_routes.rb +26 -0
- data/spec/factories/chouette_stop_areas.rb +12 -0
- data/spec/factories/chouette_stop_points.rb +10 -0
- data/spec/factories/chouette_time_table.rb +37 -0
- data/spec/factories/chouette_vehicle_journey.rb +66 -0
- data/spec/factories/chouette_vehicle_journey_at_stop.rb +8 -0
- data/spec/models/chouette/access_link_spec.rb +17 -13
- data/spec/models/chouette/access_point_spec.rb +106 -103
- data/spec/models/chouette/active_record_spec.rb +57 -57
- data/spec/models/chouette/area_type_spec.rb +8 -8
- data/spec/models/chouette/company_spec.rb +18 -18
- data/spec/models/chouette/connection_link_spec.rb +19 -15
- data/spec/models/chouette/direction_spec.rb +8 -8
- data/spec/models/chouette/exporter_spec.rb +4 -4
- data/spec/models/chouette/file_validator_spec.rb +4 -4
- data/spec/models/chouette/footnote_spec.rb +1 -1
- data/spec/models/chouette/group_of_line_spec.rb +11 -11
- data/spec/models/chouette/journey_pattern_spec.rb +16 -14
- data/spec/models/chouette/line_spec.rb +36 -32
- data/spec/models/chouette/loader_spec.rb +9 -9
- data/spec/models/chouette/network_spec.rb +9 -9
- data/spec/models/chouette/object_id_spec.rb +31 -28
- data/spec/models/chouette/route_spec.rb +51 -47
- data/spec/models/chouette/stop_area_spec.rb +191 -188
- data/spec/models/chouette/stop_point_spec.rb +13 -10
- data/spec/models/chouette/time_table_period_spec.rb +18 -18
- data/spec/models/chouette/time_table_spec.rb +303 -255
- data/spec/models/chouette/transport_mode_spec.rb +10 -10
- data/spec/models/chouette/trident_active_record_spec.rb +17 -17
- data/spec/models/chouette/vehicle_journey_at_stop_spec.rb +13 -12
- data/spec/models/chouette/vehicle_journey_spec.rb +46 -46
- data/spec/presenters/chouette/geometry/line_presenter_spec.rb +2 -2
- data/spec/spec_helper.rb +22 -9
- metadata +102 -87
- data/config/database.yml.ci +0 -14
- data/lib/factories/chouette_access_links.rb +0 -11
- data/lib/factories/chouette_access_points.rb +0 -8
- data/lib/factories/chouette_companies.rb +0 -5
- data/lib/factories/chouette_connection_links.rb +0 -11
- data/lib/factories/chouette_footnotes.rb +0 -6
- data/lib/factories/chouette_group_of_lines.rb +0 -5
- data/lib/factories/chouette_journey_pattern.rb +0 -32
- data/lib/factories/chouette_lines.rb +0 -31
- data/lib/factories/chouette_networks.rb +0 -5
- data/lib/factories/chouette_routes.rb +0 -20
- data/lib/factories/chouette_stop_areas.rb +0 -8
- data/lib/factories/chouette_stop_points.rb +0 -7
- data/lib/factories/chouette_time_table.rb +0 -23
- data/lib/factories/chouette_vehicle_journey.rb +0 -51
- data/lib/factories/chouette_vehicle_journey_at_stop.rb +0 -5
- data/spec/dummy/config/initializers/active_record.rb +0 -2
data/spec/dummy/db/schema.rb
CHANGED
@@ -9,20 +9,23 @@
|
|
9
9
|
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
10
|
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
11
|
#
|
12
|
-
# It's strongly recommended
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:
|
14
|
+
ActiveRecord::Schema.define(version: 20150526075108) do
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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
|
20
23
|
t.integer "object_version"
|
21
24
|
t.datetime "creation_time"
|
22
25
|
t.string "creator_id"
|
23
26
|
t.string "name"
|
24
27
|
t.string "comment"
|
25
|
-
t.decimal "link_distance",
|
28
|
+
t.decimal "link_distance", precision: 19, scale: 2
|
26
29
|
t.boolean "lift_availability"
|
27
30
|
t.boolean "mobility_restricted_suitability"
|
28
31
|
t.boolean "stairs_availability"
|
@@ -35,17 +38,17 @@ ActiveRecord::Schema.define(:version => 20150119160029) do
|
|
35
38
|
t.string "link_orientation"
|
36
39
|
end
|
37
40
|
|
38
|
-
add_index "access_links", ["objectid"], :
|
41
|
+
add_index "access_links", ["objectid"], name: "access_links_objectid_key", unique: true, using: :btree
|
39
42
|
|
40
|
-
create_table "access_points", :
|
43
|
+
create_table "access_points", force: true do |t|
|
41
44
|
t.string "objectid"
|
42
45
|
t.integer "object_version"
|
43
46
|
t.datetime "creation_time"
|
44
47
|
t.string "creator_id"
|
45
48
|
t.string "name"
|
46
49
|
t.string "comment"
|
47
|
-
t.decimal "longitude",
|
48
|
-
t.decimal "latitude",
|
50
|
+
t.decimal "longitude", precision: 19, scale: 16
|
51
|
+
t.decimal "latitude", precision: 19, scale: 16
|
49
52
|
t.string "long_lat_type"
|
50
53
|
t.string "country_code"
|
51
54
|
t.string "street_name"
|
@@ -56,15 +59,15 @@ ActiveRecord::Schema.define(:version => 20150119160029) do
|
|
56
59
|
t.boolean "lift_availability"
|
57
60
|
t.boolean "mobility_restricted_suitability"
|
58
61
|
t.boolean "stairs_availability"
|
59
|
-
t.integer "stop_area_id", :
|
62
|
+
t.integer "stop_area_id", limit: 8
|
60
63
|
t.string "zip_code"
|
61
64
|
t.string "city_name"
|
62
65
|
end
|
63
66
|
|
64
|
-
add_index "access_points", ["objectid"], :
|
67
|
+
add_index "access_points", ["objectid"], name: "access_points_objectid_key", unique: true, using: :btree
|
65
68
|
|
66
|
-
create_table "companies", :
|
67
|
-
t.string "objectid", :
|
69
|
+
create_table "companies", force: true do |t|
|
70
|
+
t.string "objectid", null: false
|
68
71
|
t.integer "object_version"
|
69
72
|
t.datetime "creation_time"
|
70
73
|
t.string "creator_id"
|
@@ -81,19 +84,19 @@ ActiveRecord::Schema.define(:version => 20150119160029) do
|
|
81
84
|
t.string "time_zone"
|
82
85
|
end
|
83
86
|
|
84
|
-
add_index "companies", ["objectid"], :
|
85
|
-
add_index "companies", ["registration_number"], :
|
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
|
86
89
|
|
87
|
-
create_table "connection_links", :
|
88
|
-
t.integer "departure_id", :
|
89
|
-
t.integer "arrival_id", :
|
90
|
-
t.string "objectid",
|
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
|
91
94
|
t.integer "object_version"
|
92
95
|
t.datetime "creation_time"
|
93
96
|
t.string "creator_id"
|
94
97
|
t.string "name"
|
95
98
|
t.string "comment"
|
96
|
-
t.decimal "link_distance",
|
99
|
+
t.decimal "link_distance", precision: 19, scale: 2
|
97
100
|
t.string "link_type"
|
98
101
|
t.time "default_duration"
|
99
102
|
t.time "frequent_traveller_duration"
|
@@ -105,14 +108,14 @@ ActiveRecord::Schema.define(:version => 20150119160029) do
|
|
105
108
|
t.integer "int_user_needs"
|
106
109
|
end
|
107
110
|
|
108
|
-
add_index "connection_links", ["objectid"], :
|
111
|
+
add_index "connection_links", ["objectid"], name: "connection_links_objectid_key", unique: true, using: :btree
|
109
112
|
|
110
|
-
create_table "facilities", :
|
111
|
-
t.integer "stop_area_id", :
|
112
|
-
t.integer "line_id", :
|
113
|
-
t.integer "connection_link_id", :
|
114
|
-
t.integer "stop_point_id", :
|
115
|
-
t.string "objectid",
|
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
|
116
119
|
t.integer "object_version"
|
117
120
|
t.datetime "creation_time"
|
118
121
|
t.string "creator_id"
|
@@ -120,39 +123,39 @@ ActiveRecord::Schema.define(:version => 20150119160029) do
|
|
120
123
|
t.string "comment"
|
121
124
|
t.string "description"
|
122
125
|
t.boolean "free_access"
|
123
|
-
t.decimal "longitude",
|
124
|
-
t.decimal "latitude",
|
126
|
+
t.decimal "longitude", precision: 19, scale: 16
|
127
|
+
t.decimal "latitude", precision: 19, scale: 16
|
125
128
|
t.string "long_lat_type"
|
126
|
-
t.decimal "x",
|
127
|
-
t.decimal "y",
|
129
|
+
t.decimal "x", precision: 19, scale: 2
|
130
|
+
t.decimal "y", precision: 19, scale: 2
|
128
131
|
t.string "projection_type"
|
129
132
|
t.string "country_code"
|
130
133
|
t.string "street_name"
|
131
134
|
t.string "contained_in"
|
132
135
|
end
|
133
136
|
|
134
|
-
add_index "facilities", ["objectid"], :
|
137
|
+
add_index "facilities", ["objectid"], name: "facilities_objectid_key", unique: true, using: :btree
|
135
138
|
|
136
|
-
create_table "facilities_features", :
|
137
|
-
t.integer "facility_id", :
|
139
|
+
create_table "facilities_features", id: false, force: true do |t|
|
140
|
+
t.integer "facility_id", limit: 8
|
138
141
|
t.integer "choice_code"
|
139
142
|
end
|
140
143
|
|
141
|
-
create_table "footnotes", :
|
142
|
-
t.integer "line_id", :
|
144
|
+
create_table "footnotes", force: true do |t|
|
145
|
+
t.integer "line_id", limit: 8
|
143
146
|
t.string "code"
|
144
147
|
t.string "label"
|
145
|
-
t.datetime "created_at"
|
146
|
-
t.datetime "updated_at"
|
148
|
+
t.datetime "created_at"
|
149
|
+
t.datetime "updated_at"
|
147
150
|
end
|
148
151
|
|
149
|
-
create_table "footnotes_vehicle_journeys", :
|
150
|
-
t.integer "vehicle_journey_id", :
|
151
|
-
t.integer "footnote_id", :
|
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
|
152
155
|
end
|
153
156
|
|
154
|
-
create_table "group_of_lines", :
|
155
|
-
t.string "objectid", :
|
157
|
+
create_table "group_of_lines", force: true do |t|
|
158
|
+
t.string "objectid", null: false
|
156
159
|
t.integer "object_version"
|
157
160
|
t.datetime "creation_time"
|
158
161
|
t.string "creator_id"
|
@@ -161,16 +164,16 @@ ActiveRecord::Schema.define(:version => 20150119160029) do
|
|
161
164
|
t.string "registration_number"
|
162
165
|
end
|
163
166
|
|
164
|
-
add_index "group_of_lines", ["objectid"], :
|
167
|
+
add_index "group_of_lines", ["objectid"], name: "group_of_lines_objectid_key", unique: true, using: :btree
|
165
168
|
|
166
|
-
create_table "group_of_lines_lines", :
|
167
|
-
t.integer "group_of_line_id", :
|
168
|
-
t.integer "line_id", :
|
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
|
169
172
|
end
|
170
173
|
|
171
|
-
create_table "journey_patterns", :
|
172
|
-
t.integer "route_id", :
|
173
|
-
t.string "objectid",
|
174
|
+
create_table "journey_patterns", force: true do |t|
|
175
|
+
t.integer "route_id", limit: 8
|
176
|
+
t.string "objectid", null: false
|
174
177
|
t.integer "object_version"
|
175
178
|
t.datetime "creation_time"
|
176
179
|
t.string "creator_id"
|
@@ -178,23 +181,23 @@ ActiveRecord::Schema.define(:version => 20150119160029) do
|
|
178
181
|
t.string "comment"
|
179
182
|
t.string "registration_number"
|
180
183
|
t.string "published_name"
|
181
|
-
t.integer "departure_stop_point_id", :
|
182
|
-
t.integer "arrival_stop_point_id", :
|
184
|
+
t.integer "departure_stop_point_id", limit: 8
|
185
|
+
t.integer "arrival_stop_point_id", limit: 8
|
183
186
|
end
|
184
187
|
|
185
|
-
add_index "journey_patterns", ["objectid"], :
|
188
|
+
add_index "journey_patterns", ["objectid"], name: "journey_patterns_objectid_key", unique: true, using: :btree
|
186
189
|
|
187
|
-
create_table "journey_patterns_stop_points", :
|
188
|
-
t.integer "journey_pattern_id", :
|
189
|
-
t.integer "stop_point_id", :
|
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
|
190
193
|
end
|
191
194
|
|
192
|
-
add_index "journey_patterns_stop_points", ["journey_pattern_id"], :
|
195
|
+
add_index "journey_patterns_stop_points", ["journey_pattern_id"], name: "index_journey_pattern_id_on_journey_patterns_stop_points", using: :btree
|
193
196
|
|
194
|
-
create_table "lines", :
|
195
|
-
t.integer "network_id", :
|
196
|
-
t.integer "company_id", :
|
197
|
-
t.string "objectid",
|
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
|
198
201
|
t.integer "object_version"
|
199
202
|
t.datetime "creation_time"
|
200
203
|
t.string "creator_id"
|
@@ -208,15 +211,15 @@ ActiveRecord::Schema.define(:version => 20150119160029) do
|
|
208
211
|
t.integer "int_user_needs"
|
209
212
|
t.boolean "flexible_service"
|
210
213
|
t.string "url"
|
211
|
-
t.string "color", :
|
212
|
-
t.string "text_color", :
|
214
|
+
t.string "color", limit: 6
|
215
|
+
t.string "text_color", limit: 6
|
213
216
|
end
|
214
217
|
|
215
|
-
add_index "lines", ["objectid"], :
|
216
|
-
add_index "lines", ["registration_number"], :
|
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
|
217
220
|
|
218
|
-
create_table "networks", :
|
219
|
-
t.string "objectid", :
|
221
|
+
create_table "networks", force: true do |t|
|
222
|
+
t.string "objectid", null: false
|
220
223
|
t.integer "object_version"
|
221
224
|
t.datetime "creation_time"
|
222
225
|
t.string "creator_id"
|
@@ -230,49 +233,49 @@ ActiveRecord::Schema.define(:version => 20150119160029) do
|
|
230
233
|
t.string "comment"
|
231
234
|
end
|
232
235
|
|
233
|
-
add_index "networks", ["objectid"], :
|
234
|
-
add_index "networks", ["registration_number"], :
|
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
|
235
238
|
|
236
|
-
create_table "pt_links", :
|
237
|
-
t.integer "start_of_link_id", :
|
238
|
-
t.integer "end_of_link_id", :
|
239
|
-
t.integer "route_id", :
|
240
|
-
t.string "objectid",
|
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
|
241
244
|
t.integer "object_version"
|
242
245
|
t.datetime "creation_time"
|
243
246
|
t.string "creator_id"
|
244
247
|
t.string "name"
|
245
248
|
t.string "comment"
|
246
|
-
t.decimal "link_distance",
|
249
|
+
t.decimal "link_distance", precision: 19, scale: 2
|
247
250
|
end
|
248
251
|
|
249
|
-
add_index "pt_links", ["objectid"], :
|
252
|
+
add_index "pt_links", ["objectid"], name: "pt_links_objectid_key", unique: true, using: :btree
|
250
253
|
|
251
|
-
create_table "routes", :
|
252
|
-
t.integer "line_id", :
|
253
|
-
t.string "objectid",
|
254
|
+
create_table "routes", force: true do |t|
|
255
|
+
t.integer "line_id", limit: 8
|
256
|
+
t.string "objectid", null: false
|
254
257
|
t.integer "object_version"
|
255
258
|
t.datetime "creation_time"
|
256
259
|
t.string "creator_id"
|
257
260
|
t.string "name"
|
258
261
|
t.string "comment"
|
259
|
-
t.integer "opposite_route_id", :
|
262
|
+
t.integer "opposite_route_id", limit: 8
|
260
263
|
t.string "published_name"
|
261
264
|
t.string "number"
|
262
265
|
t.string "direction"
|
263
266
|
t.string "wayback"
|
264
267
|
end
|
265
268
|
|
266
|
-
add_index "routes", ["objectid"], :
|
269
|
+
add_index "routes", ["objectid"], name: "routes_objectid_key", unique: true, using: :btree
|
267
270
|
|
268
|
-
create_table "routing_constraints_lines", :
|
269
|
-
t.integer "stop_area_id", :
|
270
|
-
t.integer "line_id", :
|
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
|
271
274
|
end
|
272
275
|
|
273
|
-
create_table "stop_areas", :
|
274
|
-
t.integer "parent_id", :
|
275
|
-
t.string "objectid",
|
276
|
+
create_table "stop_areas", force: true do |t|
|
277
|
+
t.integer "parent_id", limit: 8
|
278
|
+
t.string "objectid", null: false
|
276
279
|
t.integer "object_version"
|
277
280
|
t.datetime "creation_time"
|
278
281
|
t.string "creator_id"
|
@@ -282,8 +285,8 @@ ActiveRecord::Schema.define(:version => 20150119160029) do
|
|
282
285
|
t.string "registration_number"
|
283
286
|
t.string "nearest_topic_name"
|
284
287
|
t.integer "fare_code"
|
285
|
-
t.decimal "longitude",
|
286
|
-
t.decimal "latitude",
|
288
|
+
t.decimal "longitude", precision: 19, scale: 16
|
289
|
+
t.decimal "latitude", precision: 19, scale: 16
|
287
290
|
t.string "long_lat_type"
|
288
291
|
t.string "country_code"
|
289
292
|
t.string "street_name"
|
@@ -297,18 +300,18 @@ ActiveRecord::Schema.define(:version => 20150119160029) do
|
|
297
300
|
t.string "time_zone"
|
298
301
|
end
|
299
302
|
|
300
|
-
add_index "stop_areas", ["objectid"], :
|
301
|
-
add_index "stop_areas", ["parent_id"], :
|
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
|
302
305
|
|
303
|
-
create_table "stop_areas_stop_areas", :
|
304
|
-
t.integer "child_id", :
|
305
|
-
t.integer "parent_id", :
|
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
|
306
309
|
end
|
307
310
|
|
308
|
-
create_table "stop_points", :
|
309
|
-
t.integer "route_id", :
|
310
|
-
t.integer "stop_area_id", :
|
311
|
-
t.string "objectid",
|
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
|
312
315
|
t.integer "object_version"
|
313
316
|
t.datetime "creation_time"
|
314
317
|
t.string "creator_id"
|
@@ -317,30 +320,30 @@ ActiveRecord::Schema.define(:version => 20150119160029) do
|
|
317
320
|
t.string "for_alighting"
|
318
321
|
end
|
319
322
|
|
320
|
-
add_index "stop_points", ["objectid"], :
|
323
|
+
add_index "stop_points", ["objectid"], name: "stop_points_objectid_key", unique: true, using: :btree
|
321
324
|
|
322
|
-
create_table "taggings", :
|
325
|
+
create_table "taggings", force: true do |t|
|
323
326
|
t.integer "tag_id"
|
324
327
|
t.integer "taggable_id"
|
325
328
|
t.string "taggable_type"
|
326
329
|
t.integer "tagger_id"
|
327
330
|
t.string "tagger_type"
|
328
|
-
t.string "context", :
|
331
|
+
t.string "context", limit: 128
|
329
332
|
t.datetime "created_at"
|
330
333
|
end
|
331
334
|
|
332
|
-
add_index "taggings", ["tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type"], :
|
333
|
-
add_index "taggings", ["taggable_id", "taggable_type", "context"], :
|
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
|
334
337
|
|
335
|
-
create_table "tags", :
|
338
|
+
create_table "tags", force: true do |t|
|
336
339
|
t.string "name"
|
337
|
-
t.integer "taggings_count", :
|
340
|
+
t.integer "taggings_count", default: 0
|
338
341
|
end
|
339
342
|
|
340
|
-
add_index "tags", ["name"], :
|
343
|
+
add_index "tags", ["name"], name: "index_tags_on_name", unique: true, using: :btree
|
341
344
|
|
342
|
-
create_table "time_slots", :
|
343
|
-
t.string "objectid", :
|
345
|
+
create_table "time_slots", force: true do |t|
|
346
|
+
t.string "objectid", null: false
|
344
347
|
t.integer "object_version"
|
345
348
|
t.datetime "creation_time"
|
346
349
|
t.string "creator_id"
|
@@ -351,51 +354,51 @@ ActiveRecord::Schema.define(:version => 20150119160029) do
|
|
351
354
|
t.time "last_departure_time_in_slot"
|
352
355
|
end
|
353
356
|
|
354
|
-
add_index "time_slots", ["objectid"], :
|
357
|
+
add_index "time_slots", ["objectid"], name: "time_slots_objectid_key", unique: true, using: :btree
|
355
358
|
|
356
|
-
create_table "time_table_dates", :
|
357
|
-
t.integer "time_table_id", :
|
359
|
+
create_table "time_table_dates", force: true do |t|
|
360
|
+
t.integer "time_table_id", limit: 8, null: false
|
358
361
|
t.date "date"
|
359
|
-
t.integer "position",
|
362
|
+
t.integer "position", null: false
|
360
363
|
t.boolean "in_out"
|
361
364
|
end
|
362
365
|
|
363
|
-
add_index "time_table_dates", ["time_table_id"], :
|
366
|
+
add_index "time_table_dates", ["time_table_id"], name: "index_time_table_dates_on_time_table_id", using: :btree
|
364
367
|
|
365
|
-
create_table "time_table_periods", :
|
366
|
-
t.integer "time_table_id", :
|
368
|
+
create_table "time_table_periods", force: true do |t|
|
369
|
+
t.integer "time_table_id", limit: 8, null: false
|
367
370
|
t.date "period_start"
|
368
371
|
t.date "period_end"
|
369
|
-
t.integer "position",
|
372
|
+
t.integer "position", null: false
|
370
373
|
end
|
371
374
|
|
372
|
-
add_index "time_table_periods", ["time_table_id"], :
|
375
|
+
add_index "time_table_periods", ["time_table_id"], name: "index_time_table_periods_on_time_table_id", using: :btree
|
373
376
|
|
374
|
-
create_table "time_tables", :
|
375
|
-
t.string "objectid",
|
376
|
-
t.integer "object_version", :
|
377
|
+
create_table "time_tables", force: true do |t|
|
378
|
+
t.string "objectid", null: false
|
379
|
+
t.integer "object_version", default: 1
|
377
380
|
t.datetime "creation_time"
|
378
381
|
t.string "creator_id"
|
379
382
|
t.string "version"
|
380
383
|
t.string "comment"
|
381
|
-
t.integer "int_day_types", :
|
384
|
+
t.integer "int_day_types", default: 0
|
382
385
|
t.date "start_date"
|
383
386
|
t.date "end_date"
|
384
387
|
end
|
385
388
|
|
386
|
-
add_index "time_tables", ["objectid"], :
|
389
|
+
add_index "time_tables", ["objectid"], name: "time_tables_objectid_key", unique: true, using: :btree
|
387
390
|
|
388
|
-
create_table "time_tables_vehicle_journeys", :
|
389
|
-
t.integer "time_table_id", :
|
390
|
-
t.integer "vehicle_journey_id", :
|
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
|
391
394
|
end
|
392
395
|
|
393
|
-
add_index "time_tables_vehicle_journeys", ["time_table_id"], :
|
394
|
-
add_index "time_tables_vehicle_journeys", ["vehicle_journey_id"], :
|
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
|
395
398
|
|
396
|
-
create_table "vehicle_journey_at_stops", :
|
397
|
-
t.integer "vehicle_journey_id", :
|
398
|
-
t.integer "stop_point_id", :
|
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
|
399
402
|
t.string "connecting_service_id"
|
400
403
|
t.string "boarding_alighting_possibility"
|
401
404
|
t.time "arrival_time"
|
@@ -407,15 +410,15 @@ ActiveRecord::Schema.define(:version => 20150119160029) do
|
|
407
410
|
t.string "for_alighting"
|
408
411
|
end
|
409
412
|
|
410
|
-
add_index "vehicle_journey_at_stops", ["stop_point_id"], :
|
411
|
-
add_index "vehicle_journey_at_stops", ["vehicle_journey_id"], :
|
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
|
412
415
|
|
413
|
-
create_table "vehicle_journeys", :
|
414
|
-
t.integer "route_id", :
|
415
|
-
t.integer "journey_pattern_id", :
|
416
|
-
t.integer "time_slot_id", :
|
417
|
-
t.integer "company_id", :
|
418
|
-
t.string "objectid",
|
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
|
419
422
|
t.integer "object_version"
|
420
423
|
t.datetime "creation_time"
|
421
424
|
t.string "creator_id"
|
@@ -426,13 +429,13 @@ ActiveRecord::Schema.define(:version => 20150119160029) do
|
|
426
429
|
t.string "published_journey_identifier"
|
427
430
|
t.string "facility"
|
428
431
|
t.string "vehicle_type_identifier"
|
429
|
-
t.integer "number", :
|
432
|
+
t.integer "number", limit: 8
|
430
433
|
t.boolean "mobility_restricted_suitability"
|
431
434
|
t.boolean "flexible_service"
|
432
435
|
end
|
433
436
|
|
434
|
-
add_index "vehicle_journeys", ["objectid"], :
|
435
|
-
add_index "vehicle_journeys", ["route_id"], :
|
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
|
436
439
|
|
437
440
|
add_foreign_key "access_links", "access_points", name: "aclk_acpt_fkey", dependent: :delete
|
438
441
|
add_foreign_key "access_links", "stop_areas", name: "aclk_area_fkey", dependent: :delete
|
@@ -456,6 +459,7 @@ ActiveRecord::Schema.define(:version => 20150119160029) do
|
|
456
459
|
add_foreign_key "lines", "networks", name: "line_ptnetwork_fkey", dependent: :nullify
|
457
460
|
|
458
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
|
459
463
|
|
460
464
|
add_foreign_key "routing_constraints_lines", "lines", name: "routingconstraint_line_fkey", dependent: :delete
|
461
465
|
add_foreign_key "routing_constraints_lines", "stop_areas", name: "routingconstraint_stoparea_fkey", dependent: :delete
|
File without changes
|
File without changes
|
data/spec/dummy/public/404.html
CHANGED
@@ -2,17 +2,48 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
-
<style
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
16
47
|
</style>
|
17
48
|
</head>
|
18
49
|
|
@@ -22,5 +53,6 @@
|
|
22
53
|
<h1>The page you were looking for doesn't exist.</h1>
|
23
54
|
<p>You may have mistyped the address or the page may have moved.</p>
|
24
55
|
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
25
57
|
</body>
|
26
58
|
</html>
|