ninoxe 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/chouette/vehicle_journey_at_stop.rb +5 -5
- data/lib/ninoxe/version.rb +1 -1
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- 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.ru +4 -0
- data/spec/dummy/config/application.rb +28 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +19 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/locales/fr.yml +23 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/db/schema.rb +490 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- 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 +82 -0
- data/spec/models/chouette/access_point_spec.rb +269 -0
- data/spec/models/chouette/active_record_spec.rb +121 -0
- data/spec/models/chouette/area_type_spec.rb +53 -0
- data/spec/models/chouette/company_spec.rb +48 -0
- data/spec/models/chouette/connection_link_spec.rb +60 -0
- data/spec/models/chouette/direction_spec.rb +60 -0
- data/spec/models/chouette/exporter_spec.rb +28 -0
- data/spec/models/chouette/file_validator_spec.rb +28 -0
- data/spec/models/chouette/footnote_spec.rb +9 -0
- data/spec/models/chouette/group_of_line_spec.rb +31 -0
- data/spec/models/chouette/journey_pattern_spec.rb +64 -0
- data/spec/models/chouette/line_spec.rb +120 -0
- data/spec/models/chouette/loader_spec.rb +69 -0
- data/spec/models/chouette/network_spec.rb +19 -0
- data/spec/models/chouette/object_id_spec.rb +149 -0
- data/spec/models/chouette/route_spec.rb +238 -0
- data/spec/models/chouette/stop_area_spec.rb +443 -0
- data/spec/models/chouette/stop_point_spec.rb +41 -0
- data/spec/models/chouette/time_table_period_spec.rb +66 -0
- data/spec/models/chouette/time_table_spec.rb +1266 -0
- data/spec/models/chouette/transport_mode_spec.rb +64 -0
- data/spec/models/chouette/trident_active_record_spec.rb +115 -0
- data/spec/models/chouette/vehicle_journey_at_stop_spec.rb +47 -0
- data/spec/models/chouette/vehicle_journey_spec.rb +223 -0
- data/spec/presenters/chouette/geometry/general_presenter.rb +1 -0
- data/spec/presenters/chouette/geometry/line_presenter_spec.rb +13 -0
- data/spec/spec_helper.rb +58 -0
- metadata +178 -10
- data/config/database.yml.me +0 -11
- data/lib/ninoxe.rb~ +0 -7
@@ -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] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -0,0 +1,23 @@
|
|
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
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -0,0 +1,23 @@
|
|
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"
|
@@ -0,0 +1,490 @@
|
|
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: 20150922093109) 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", 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", null: false
|
149
|
+
t.datetime "updated_at", null: false
|
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
|
+
t.string "stable_id"
|
217
|
+
end
|
218
|
+
|
219
|
+
add_index "lines", ["objectid"], name: "lines_objectid_key", unique: true, using: :btree
|
220
|
+
add_index "lines", ["registration_number"], name: "lines_registration_number_key", using: :btree
|
221
|
+
|
222
|
+
create_table "networks", force: true do |t|
|
223
|
+
t.string "objectid", null: false
|
224
|
+
t.integer "object_version"
|
225
|
+
t.datetime "creation_time"
|
226
|
+
t.string "creator_id"
|
227
|
+
t.date "version_date"
|
228
|
+
t.string "description"
|
229
|
+
t.string "name"
|
230
|
+
t.string "registration_number"
|
231
|
+
t.string "source_name"
|
232
|
+
t.string "source_type"
|
233
|
+
t.string "source_identifier"
|
234
|
+
t.string "comment"
|
235
|
+
end
|
236
|
+
|
237
|
+
add_index "networks", ["objectid"], name: "networks_objectid_key", unique: true, using: :btree
|
238
|
+
add_index "networks", ["registration_number"], name: "networks_registration_number_key", using: :btree
|
239
|
+
|
240
|
+
create_table "pt_links", force: true do |t|
|
241
|
+
t.integer "start_of_link_id", limit: 8
|
242
|
+
t.integer "end_of_link_id", limit: 8
|
243
|
+
t.integer "route_id", limit: 8
|
244
|
+
t.string "objectid", null: false
|
245
|
+
t.integer "object_version"
|
246
|
+
t.datetime "creation_time"
|
247
|
+
t.string "creator_id"
|
248
|
+
t.string "name"
|
249
|
+
t.string "comment"
|
250
|
+
t.decimal "link_distance", precision: 19, scale: 2
|
251
|
+
end
|
252
|
+
|
253
|
+
add_index "pt_links", ["objectid"], name: "pt_links_objectid_key", unique: true, using: :btree
|
254
|
+
|
255
|
+
create_table "routes", force: true do |t|
|
256
|
+
t.integer "line_id", limit: 8
|
257
|
+
t.string "objectid", null: false
|
258
|
+
t.integer "object_version"
|
259
|
+
t.datetime "creation_time"
|
260
|
+
t.string "creator_id"
|
261
|
+
t.string "name"
|
262
|
+
t.string "comment"
|
263
|
+
t.integer "opposite_route_id", limit: 8
|
264
|
+
t.string "published_name"
|
265
|
+
t.string "number"
|
266
|
+
t.string "direction"
|
267
|
+
t.string "wayback"
|
268
|
+
end
|
269
|
+
|
270
|
+
add_index "routes", ["objectid"], name: "routes_objectid_key", unique: true, using: :btree
|
271
|
+
|
272
|
+
create_table "routing_constraints_lines", id: false, force: true do |t|
|
273
|
+
t.integer "stop_area_id", limit: 8
|
274
|
+
t.integer "line_id", limit: 8
|
275
|
+
end
|
276
|
+
|
277
|
+
create_table "stop_areas", force: true do |t|
|
278
|
+
t.integer "parent_id", limit: 8
|
279
|
+
t.string "objectid", null: false
|
280
|
+
t.integer "object_version"
|
281
|
+
t.datetime "creation_time"
|
282
|
+
t.string "creator_id"
|
283
|
+
t.string "name"
|
284
|
+
t.string "comment"
|
285
|
+
t.string "area_type"
|
286
|
+
t.string "registration_number"
|
287
|
+
t.string "nearest_topic_name"
|
288
|
+
t.integer "fare_code"
|
289
|
+
t.decimal "longitude", precision: 19, scale: 16
|
290
|
+
t.decimal "latitude", precision: 19, scale: 16
|
291
|
+
t.string "long_lat_type"
|
292
|
+
t.string "country_code"
|
293
|
+
t.string "street_name"
|
294
|
+
t.boolean "mobility_restricted_suitability"
|
295
|
+
t.boolean "stairs_availability"
|
296
|
+
t.boolean "lift_availability"
|
297
|
+
t.integer "int_user_needs"
|
298
|
+
t.string "zip_code"
|
299
|
+
t.string "city_name"
|
300
|
+
t.string "url"
|
301
|
+
t.string "time_zone"
|
302
|
+
end
|
303
|
+
|
304
|
+
add_index "stop_areas", ["objectid"], name: "stop_areas_objectid_key", unique: true, using: :btree
|
305
|
+
add_index "stop_areas", ["parent_id"], name: "index_stop_areas_on_parent_id", using: :btree
|
306
|
+
|
307
|
+
create_table "stop_areas_stop_areas", id: false, force: true do |t|
|
308
|
+
t.integer "child_id", limit: 8
|
309
|
+
t.integer "parent_id", limit: 8
|
310
|
+
end
|
311
|
+
|
312
|
+
create_table "stop_points", force: true do |t|
|
313
|
+
t.integer "route_id", limit: 8
|
314
|
+
t.integer "stop_area_id", limit: 8
|
315
|
+
t.string "objectid", null: false
|
316
|
+
t.integer "object_version"
|
317
|
+
t.datetime "creation_time"
|
318
|
+
t.string "creator_id"
|
319
|
+
t.integer "position"
|
320
|
+
t.string "for_boarding"
|
321
|
+
t.string "for_alighting"
|
322
|
+
end
|
323
|
+
|
324
|
+
add_index "stop_points", ["objectid"], name: "stop_points_objectid_key", unique: true, using: :btree
|
325
|
+
|
326
|
+
create_table "taggings", force: true do |t|
|
327
|
+
t.integer "tag_id"
|
328
|
+
t.integer "taggable_id"
|
329
|
+
t.string "taggable_type"
|
330
|
+
t.integer "tagger_id"
|
331
|
+
t.string "tagger_type"
|
332
|
+
t.string "context", limit: 128
|
333
|
+
t.datetime "created_at"
|
334
|
+
end
|
335
|
+
|
336
|
+
add_index "taggings", ["tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type"], name: "taggings_idx", unique: true, using: :btree
|
337
|
+
add_index "taggings", ["taggable_id", "taggable_type", "context"], name: "index_taggings_on_taggable_id_and_taggable_type_and_context", using: :btree
|
338
|
+
|
339
|
+
create_table "tags", force: true do |t|
|
340
|
+
t.string "name"
|
341
|
+
t.integer "taggings_count", default: 0
|
342
|
+
end
|
343
|
+
|
344
|
+
add_index "tags", ["name"], name: "index_tags_on_name", unique: true, using: :btree
|
345
|
+
|
346
|
+
create_table "time_slots", force: true do |t|
|
347
|
+
t.string "objectid", null: false
|
348
|
+
t.integer "object_version"
|
349
|
+
t.datetime "creation_time"
|
350
|
+
t.string "creator_id"
|
351
|
+
t.string "name"
|
352
|
+
t.time "beginning_slot_time"
|
353
|
+
t.time "end_slot_time"
|
354
|
+
t.time "first_departure_time_in_slot"
|
355
|
+
t.time "last_departure_time_in_slot"
|
356
|
+
end
|
357
|
+
|
358
|
+
add_index "time_slots", ["objectid"], name: "time_slots_objectid_key", unique: true, using: :btree
|
359
|
+
|
360
|
+
create_table "time_table_dates", force: true do |t|
|
361
|
+
t.integer "time_table_id", limit: 8, null: false
|
362
|
+
t.date "date"
|
363
|
+
t.integer "position", null: false
|
364
|
+
t.boolean "in_out"
|
365
|
+
end
|
366
|
+
|
367
|
+
add_index "time_table_dates", ["time_table_id"], name: "index_time_table_dates_on_time_table_id", using: :btree
|
368
|
+
|
369
|
+
create_table "time_table_periods", force: true do |t|
|
370
|
+
t.integer "time_table_id", limit: 8, null: false
|
371
|
+
t.date "period_start"
|
372
|
+
t.date "period_end"
|
373
|
+
t.integer "position", null: false
|
374
|
+
end
|
375
|
+
|
376
|
+
add_index "time_table_periods", ["time_table_id"], name: "index_time_table_periods_on_time_table_id", using: :btree
|
377
|
+
|
378
|
+
create_table "time_tables", force: true do |t|
|
379
|
+
t.string "objectid", null: false
|
380
|
+
t.integer "object_version", default: 1
|
381
|
+
t.datetime "creation_time"
|
382
|
+
t.string "creator_id"
|
383
|
+
t.string "version"
|
384
|
+
t.string "comment"
|
385
|
+
t.integer "int_day_types", default: 0
|
386
|
+
t.date "start_date"
|
387
|
+
t.date "end_date"
|
388
|
+
end
|
389
|
+
|
390
|
+
add_index "time_tables", ["objectid"], name: "time_tables_objectid_key", unique: true, using: :btree
|
391
|
+
|
392
|
+
create_table "time_tables_vehicle_journeys", id: false, force: true do |t|
|
393
|
+
t.integer "time_table_id", limit: 8
|
394
|
+
t.integer "vehicle_journey_id", limit: 8
|
395
|
+
end
|
396
|
+
|
397
|
+
add_index "time_tables_vehicle_journeys", ["time_table_id"], name: "index_time_tables_vehicle_journeys_on_time_table_id", using: :btree
|
398
|
+
add_index "time_tables_vehicle_journeys", ["vehicle_journey_id"], name: "index_time_tables_vehicle_journeys_on_vehicle_journey_id", using: :btree
|
399
|
+
|
400
|
+
create_table "vehicle_journey_at_stops", force: true do |t|
|
401
|
+
t.integer "vehicle_journey_id", limit: 8
|
402
|
+
t.integer "stop_point_id", limit: 8
|
403
|
+
t.string "connecting_service_id"
|
404
|
+
t.string "boarding_alighting_possibility"
|
405
|
+
t.time "arrival_time"
|
406
|
+
t.time "departure_time"
|
407
|
+
t.time "waiting_time"
|
408
|
+
t.time "elapse_duration"
|
409
|
+
t.time "headway_frequency"
|
410
|
+
t.string "for_boarding"
|
411
|
+
t.string "for_alighting"
|
412
|
+
end
|
413
|
+
|
414
|
+
add_index "vehicle_journey_at_stops", ["stop_point_id"], name: "index_vehicle_journey_at_stops_on_stop_pointid", using: :btree
|
415
|
+
add_index "vehicle_journey_at_stops", ["vehicle_journey_id"], name: "index_vehicle_journey_at_stops_on_vehicle_journey_id", using: :btree
|
416
|
+
|
417
|
+
create_table "vehicle_journeys", force: true do |t|
|
418
|
+
t.integer "route_id", limit: 8
|
419
|
+
t.integer "journey_pattern_id", limit: 8
|
420
|
+
t.integer "time_slot_id", limit: 8
|
421
|
+
t.integer "company_id", limit: 8
|
422
|
+
t.string "objectid", null: false
|
423
|
+
t.integer "object_version"
|
424
|
+
t.datetime "creation_time"
|
425
|
+
t.string "creator_id"
|
426
|
+
t.string "comment"
|
427
|
+
t.string "status_value"
|
428
|
+
t.string "transport_mode"
|
429
|
+
t.string "published_journey_name"
|
430
|
+
t.string "published_journey_identifier"
|
431
|
+
t.string "facility"
|
432
|
+
t.string "vehicle_type_identifier"
|
433
|
+
t.integer "number", limit: 8
|
434
|
+
t.boolean "mobility_restricted_suitability"
|
435
|
+
t.boolean "flexible_service"
|
436
|
+
end
|
437
|
+
|
438
|
+
add_index "vehicle_journeys", ["objectid"], name: "vehicle_journeys_objectid_key", unique: true, using: :btree
|
439
|
+
add_index "vehicle_journeys", ["route_id"], name: "index_vehicle_journeys_on_route_id", using: :btree
|
440
|
+
|
441
|
+
add_foreign_key "access_links", "access_points", name: "aclk_acpt_fkey", dependent: :delete
|
442
|
+
add_foreign_key "access_links", "stop_areas", name: "aclk_area_fkey", dependent: :delete
|
443
|
+
|
444
|
+
add_foreign_key "access_points", "stop_areas", name: "access_area_fkey", dependent: :delete
|
445
|
+
|
446
|
+
add_foreign_key "connection_links", "stop_areas", name: "colk_endarea_fkey", column: "arrival_id", dependent: :delete
|
447
|
+
add_foreign_key "connection_links", "stop_areas", name: "colk_startarea_fkey", column: "departure_id", dependent: :delete
|
448
|
+
|
449
|
+
add_foreign_key "group_of_lines_lines", "group_of_lines", name: "groupofline_group_fkey", dependent: :delete
|
450
|
+
add_foreign_key "group_of_lines_lines", "lines", name: "groupofline_line_fkey", dependent: :delete
|
451
|
+
|
452
|
+
add_foreign_key "journey_patterns", "routes", name: "jp_route_fkey", dependent: :delete
|
453
|
+
add_foreign_key "journey_patterns", "stop_points", name: "arrival_point_fkey", column: "arrival_stop_point_id", dependent: :nullify
|
454
|
+
add_foreign_key "journey_patterns", "stop_points", name: "departure_point_fkey", column: "departure_stop_point_id", dependent: :nullify
|
455
|
+
|
456
|
+
add_foreign_key "journey_patterns_stop_points", "journey_patterns", name: "jpsp_jp_fkey", dependent: :delete
|
457
|
+
add_foreign_key "journey_patterns_stop_points", "stop_points", name: "jpsp_stoppoint_fkey", dependent: :delete
|
458
|
+
|
459
|
+
add_foreign_key "lines", "companies", name: "line_company_fkey", dependent: :nullify
|
460
|
+
add_foreign_key "lines", "networks", name: "line_ptnetwork_fkey", dependent: :nullify
|
461
|
+
|
462
|
+
add_foreign_key "routes", "lines", name: "route_line_fkey", dependent: :delete
|
463
|
+
add_foreign_key "routes", "routes", name: "route_opposite_route_fkey", column: "opposite_route_id", dependent: :nullify
|
464
|
+
|
465
|
+
add_foreign_key "routing_constraints_lines", "lines", name: "routingconstraint_line_fkey", dependent: :delete
|
466
|
+
add_foreign_key "routing_constraints_lines", "stop_areas", name: "routingconstraint_stoparea_fkey", dependent: :delete
|
467
|
+
|
468
|
+
add_foreign_key "stop_areas", "stop_areas", name: "area_parent_fkey", column: "parent_id", dependent: :nullify
|
469
|
+
|
470
|
+
add_foreign_key "stop_areas_stop_areas", "stop_areas", name: "stoparea_child_fkey", column: "child_id", dependent: :delete
|
471
|
+
add_foreign_key "stop_areas_stop_areas", "stop_areas", name: "stoparea_parent_fkey", column: "parent_id", dependent: :delete
|
472
|
+
|
473
|
+
add_foreign_key "stop_points", "routes", name: "stoppoint_route_fkey", dependent: :delete
|
474
|
+
add_foreign_key "stop_points", "stop_areas", name: "stoppoint_area_fkey"
|
475
|
+
|
476
|
+
add_foreign_key "time_table_dates", "time_tables", name: "tm_date_fkey", dependent: :delete
|
477
|
+
|
478
|
+
add_foreign_key "time_table_periods", "time_tables", name: "tm_period_fkey", dependent: :delete
|
479
|
+
|
480
|
+
add_foreign_key "time_tables_vehicle_journeys", "time_tables", name: "vjtm_tm_fkey", dependent: :delete
|
481
|
+
add_foreign_key "time_tables_vehicle_journeys", "vehicle_journeys", name: "vjtm_vj_fkey", dependent: :delete
|
482
|
+
|
483
|
+
add_foreign_key "vehicle_journey_at_stops", "stop_points", name: "vjas_sp_fkey", dependent: :delete
|
484
|
+
add_foreign_key "vehicle_journey_at_stops", "vehicle_journeys", name: "vjas_vj_fkey", dependent: :delete
|
485
|
+
|
486
|
+
add_foreign_key "vehicle_journeys", "companies", name: "vj_company_fkey", dependent: :nullify
|
487
|
+
add_foreign_key "vehicle_journeys", "journey_patterns", name: "vj_jp_fkey", dependent: :delete
|
488
|
+
add_foreign_key "vehicle_journeys", "routes", name: "vj_route_fkey", dependent: :delete
|
489
|
+
|
490
|
+
end
|