aboutsummaryrefslogtreecommitdiffstats
path: root/db/schema.rb
diff options
context:
space:
mode:
authorRobert2017-06-15 09:40:50 +0200
committerRobert2017-06-15 09:40:50 +0200
commit4eb7626783875ac4cfe0719aac268c7b54c661ac (patch)
treeb563202e93f74481911f11210fcd4179f79bd6c8 /db/schema.rb
parentb7fac062e4a0fcaf485ff7c848f161f99f020a5f (diff)
downloadchouette-core-4eb7626783875ac4cfe0719aac268c7b54c661ac.tar.bz2
exported schema for tests
Diffstat (limited to 'db/schema.rb')
-rw-r--r--db/schema.rb22
1 files changed, 9 insertions, 13 deletions
diff --git a/db/schema.rb b/db/schema.rb
index d9a4fc5f8..e64e5c04a 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -284,7 +284,7 @@ ActiveRecord::Schema.define(version: 20170607141317) do
t.datetime "started_at"
t.datetime "ended_at"
t.string "token_download"
- t.string "type"
+ t.string "type", limit: 255
end
add_index "imports", ["referential_id"], name: "index_imports_on_referential_id", using: :btree
@@ -602,7 +602,7 @@ ActiveRecord::Schema.define(version: 20170607141317) do
create_table "stop_areas", id: :bigserial, force: :cascade do |t|
t.integer "parent_id", limit: 8
- t.string "objectid", null: false
+ t.string "objectid", null: false
t.integer "object_version", limit: 8
t.string "creator_id"
t.string "name"
@@ -611,8 +611,8 @@ ActiveRecord::Schema.define(version: 20170607141317) do
t.string "registration_number"
t.string "nearest_topic_name"
t.integer "fare_code"
- t.decimal "longitude", precision: 19, scale: 16
- t.decimal "latitude", precision: 19, scale: 16
+ t.decimal "longitude", precision: 19, scale: 16
+ t.decimal "latitude", precision: 19, scale: 16
t.string "long_lat_type"
t.string "country_code"
t.string "street_name"
@@ -630,7 +630,7 @@ ActiveRecord::Schema.define(version: 20170607141317) do
t.datetime "deleted_at"
t.datetime "created_at"
t.datetime "updated_at"
- t.string "stif_type"
+ t.string "stif_type", limit: 255
end
add_index "stop_areas", ["name"], name: "index_stop_areas_on_name", using: :btree
@@ -697,18 +697,18 @@ ActiveRecord::Schema.define(version: 20170607141317) do
add_index "time_table_periods", ["time_table_id"], name: "index_time_table_periods_on_time_table_id", using: :btree
create_table "time_tables", id: :bigserial, force: :cascade do |t|
- t.string "objectid", null: false
- t.integer "object_version", limit: 8, default: 1
+ t.string "objectid", null: false
+ t.integer "object_version", limit: 8, default: 1
t.string "creator_id"
t.string "version"
t.string "comment"
- t.integer "int_day_types", default: 0
+ t.integer "int_day_types", default: 0
t.date "start_date"
t.date "end_date"
t.integer "calendar_id", limit: 8
t.datetime "created_at"
t.datetime "updated_at"
- t.string "color"
+ t.string "color", limit: 255
t.integer "created_from_id"
end
@@ -829,10 +829,6 @@ ActiveRecord::Schema.define(version: 20170607141317) do
add_index "workbenches", ["organisation_id"], name: "index_workbenches_on_organisation_id", using: :btree
add_index "workbenches", ["stop_area_referential_id"], name: "index_workbenches_on_stop_area_referential_id", using: :btree
- create_table "yyy", id: false, force: :cascade do |t|
- t.text "value"
- end
-
add_foreign_key "access_links", "access_points", name: "aclk_acpt_fkey"
add_foreign_key "group_of_lines_lines", "group_of_lines", name: "groupofline_group_fkey", on_delete: :cascade
add_foreign_key "journey_frequencies", "timebands", on_delete: :nullify