aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlban Peignier2018-03-15 10:00:02 +0100
committerAlban Peignier2018-03-15 10:02:14 +0100
commit7cef201f206f1b95ece9b28a07b384a3fb88d7c9 (patch)
treeae866343b0308cc6322bea2e669a14ca682759f1
parent8c9ae9bf75a148e3080acb6d60d0523793d555c7 (diff)
downloadchouette-core-7cef201f206f1b95ece9b28a07b384a3fb88d7c9.tar.bz2
Keep schema.rb clean
-rw-r--r--db/schema.rb53
1 files changed, 6 insertions, 47 deletions
diff --git a/db/schema.rb b/db/schema.rb
index 7f774478c..2f9ffa840 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -298,58 +298,18 @@ ActiveRecord::Schema.define(version: 20180308095116) do
add_index "custom_fields", ["resource_type"], name: "index_custom_fields_on_resource_type", using: :btree
- create_table "export_messages", id: :bigserial, force: :cascade do |t|
- t.string "criticity"
- t.string "message_key"
- t.hstore "message_attributes"
- t.integer "export_id", limit: 8
- t.integer "resource_id", limit: 8
- t.datetime "created_at"
- t.datetime "updated_at"
- t.hstore "resource_attributes"
- end
-
- add_index "export_messages", ["export_id"], name: "index_export_messages_on_export_id", using: :btree
- add_index "export_messages", ["resource_id"], name: "index_export_messages_on_resource_id", using: :btree
-
- create_table "export_resources", id: :bigserial, force: :cascade do |t|
- t.integer "export_id", limit: 8
- t.string "status"
- t.datetime "created_at"
- t.datetime "updated_at"
- t.string "resource_type"
- t.string "reference"
- t.string "name"
- t.hstore "metrics"
- end
-
- add_index "export_resources", ["export_id"], name: "index_export_resources_on_export_id", using: :btree
-
create_table "exports", id: :bigserial, force: :cascade do |t|
+ t.integer "referential_id", limit: 8
t.string "status"
- t.string "current_step_id"
- t.float "current_step_progress"
- t.integer "workbench_id", limit: 8
- t.integer "referential_id", limit: 8
- t.string "name"
+ t.string "type"
+ t.string "options"
t.datetime "created_at"
t.datetime "updated_at"
- t.string "file"
- t.datetime "started_at"
- t.datetime "ended_at"
- t.string "token_upload"
- t.string "type"
- t.integer "parent_id", limit: 8
- t.string "parent_type"
- t.datetime "notified_parent_at"
- t.integer "current_step", default: 0
- t.integer "total_steps", default: 0
- t.string "creator"
- t.hstore "options"
+ t.string "references_type"
+ t.string "reference_ids"
end
add_index "exports", ["referential_id"], name: "index_exports_on_referential_id", using: :btree
- add_index "exports", ["workbench_id"], name: "index_exports_on_workbench_id", using: :btree
create_table "facilities", id: :bigserial, force: :cascade do |t|
t.integer "stop_area_id", limit: 8
@@ -460,9 +420,9 @@ ActiveRecord::Schema.define(version: 20180308095116) do
t.string "type"
t.integer "parent_id", limit: 8
t.string "parent_type"
- t.datetime "notified_parent_at"
t.integer "current_step", default: 0
t.integer "total_steps", default: 0
+ t.datetime "notified_parent_at"
t.string "creator"
end
@@ -805,7 +765,6 @@ ActiveRecord::Schema.define(version: 20180308095116) do
t.datetime "created_at"
t.datetime "updated_at"
t.string "objectid_format"
- t.string "registration_number_format"
end
create_table "stop_areas", id: :bigserial, force: :cascade do |t|