aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorRobert2017-08-02 18:05:20 +0200
committerRobert2017-08-02 18:05:20 +0200
commit06c7e8aaf9c23b421756784c33687ebc836e1412 (patch)
treed73756af5cdd6ecc7118c428d365e7144d3a1144 /db
parent22b2893519938de8c49c07b57490aaf294926cee (diff)
downloadchouette-core-06c7e8aaf9c23b421756784c33687ebc836e1412.tar.bz2
Refs: #4216@0.5h; Corresponding migrations
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170802141224_rename_message_attributs_to_message_attributes_everywhere.rb10
-rw-r--r--db/schema.rb28
2 files changed, 34 insertions, 4 deletions
diff --git a/db/migrate/20170802141224_rename_message_attributs_to_message_attributes_everywhere.rb b/db/migrate/20170802141224_rename_message_attributs_to_message_attributes_everywhere.rb
new file mode 100644
index 000000000..2ac0ae1a7
--- /dev/null
+++ b/db/migrate/20170802141224_rename_message_attributs_to_message_attributes_everywhere.rb
@@ -0,0 +1,10 @@
+class RenameMessageAttributsToMessageAttributesEverywhere < ActiveRecord::Migration
+ def change
+ # -- for table in cleanup_results import_messages line_referential_sync_messages stop_area_referential_sync_messages
+ # rename_column :table, :message_attributs, :message_attributes
+ # rename_column :cleanup_results, :message_attributs, :message_attributes
+ rename_column :import_messages, :message_attributs, :message_attributes
+ rename_column :line_referential_sync_messages, :message_attributs, :message_attributes
+ rename_column :stop_area_referential_sync_messages, :message_attributs, :message_attributes
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 05a024e1d..c7adc8f1d 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20170727130705) do
+ActiveRecord::Schema.define(version: 20170802141224) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -166,6 +166,22 @@ ActiveRecord::Schema.define(version: 20170727130705) do
add_index "connection_links", ["objectid"], name: "connection_links_objectid_key", unique: true, using: :btree
+ create_table "delayed_jobs", id: :bigserial, force: :cascade do |t|
+ t.integer "priority", default: 0
+ t.integer "attempts", default: 0
+ t.text "handler"
+ t.text "last_error"
+ t.datetime "run_at"
+ t.datetime "locked_at"
+ t.datetime "failed_at"
+ t.string "locked_by", limit: 255
+ t.string "queue", limit: 255
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ add_index "delayed_jobs", ["priority", "run_at"], name: "delayed_jobs_priority", using: :btree
+
create_table "exports", id: :bigserial, force: :cascade do |t|
t.integer "referential_id", limit: 8
t.string "status"
@@ -247,7 +263,7 @@ ActiveRecord::Schema.define(version: 20170727130705) do
create_table "import_messages", id: :bigserial, force: :cascade do |t|
t.integer "criticity"
t.string "message_key"
- t.hstore "message_attributs"
+ t.hstore "message_attributes"
t.integer "import_id", limit: 8
t.integer "resource_id", limit: 8
t.datetime "created_at"
@@ -354,7 +370,7 @@ ActiveRecord::Schema.define(version: 20170727130705) do
create_table "line_referential_sync_messages", id: :bigserial, force: :cascade do |t|
t.integer "criticity"
t.string "message_key"
- t.hstore "message_attributs"
+ t.hstore "message_attributes"
t.integer "line_referential_sync_id", limit: 8
t.datetime "created_at"
t.datetime "updated_at"
@@ -579,7 +595,7 @@ ActiveRecord::Schema.define(version: 20170727130705) do
create_table "stop_area_referential_sync_messages", id: :bigserial, force: :cascade do |t|
t.integer "criticity"
t.string "message_key"
- t.hstore "message_attributs"
+ t.hstore "message_attributes"
t.integer "stop_area_referential_sync_id", limit: 8
t.datetime "created_at"
t.datetime "updated_at"
@@ -835,9 +851,13 @@ ActiveRecord::Schema.define(version: 20170727130705) do
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", name: "journey_frequencies_timeband_id_fk", on_delete: :nullify
add_foreign_key "journey_frequencies", "timebands", on_delete: :nullify
+ add_foreign_key "journey_frequencies", "vehicle_journeys", name: "journey_frequencies_vehicle_journey_id_fk", on_delete: :nullify
add_foreign_key "journey_frequencies", "vehicle_journeys", on_delete: :nullify
+ add_foreign_key "journey_pattern_sections", "journey_patterns", name: "journey_pattern_sections_journey_pattern_id_fk", on_delete: :cascade
add_foreign_key "journey_pattern_sections", "journey_patterns", on_delete: :cascade
+ add_foreign_key "journey_pattern_sections", "route_sections", name: "journey_pattern_sections_route_section_id_fk", on_delete: :cascade
add_foreign_key "journey_pattern_sections", "route_sections", on_delete: :cascade
add_foreign_key "journey_patterns", "routes", name: "jp_route_fkey", on_delete: :cascade
add_foreign_key "journey_patterns", "stop_points", column: "arrival_stop_point_id", name: "arrival_point_fkey", on_delete: :nullify