aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorRobert Dober2017-08-03 11:22:27 +0200
committerGitHub2017-08-03 11:22:27 +0200
commitc8eafd43a661e1c75fcdce50744fd79d37344747 (patch)
tree3714b7311e5119aff9816823d06fea71fef11592 /db
parent494fdfab76e6557018de77dac6861513ffa0502b (diff)
parent8b77b96ffa56b14fc94f84b9cffc24a94fc0c13f (diff)
downloadchouette-core-c8eafd43a661e1c75fcdce50744fd79d37344747.tar.bz2
Merge pull request #52 from af83/4216_rename_attributs
4216 rename attributs
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170802141224_rename_message_attributs_to_message_attributes_everywhere.rb10
-rw-r--r--db/schema.rb8
2 files changed, 14 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 05f5c2e87..e839edf86 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"
@@ -247,7 +247,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"
@@ -355,7 +355,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"
@@ -580,7 +580,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"