aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorXinhui2016-09-27 11:00:55 +0200
committerXinhui2016-09-27 11:11:15 +0200
commit811d6208f4a126b08fc7ae8c4233ce8fca1eb198 (patch)
treebe59e510e87bf01303b0f3b6d67c95b68dbdccbe /db
parent8c378fe9c6299ac9400ff6898702b7e0c6a64799 (diff)
downloadchouette-core-811d6208f4a126b08fc7ae8c4233ce8fca1eb198.tar.bz2
Remove model LineSyncOperation
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20160818090010_add_message_to_line_sync_operation.rb5
-rw-r--r--db/migrate/20160927085857_drop_line_sync_operations.rb (renamed from db/migrate/20160627124541_create_line_sync_operations.rb)8
-rw-r--r--db/schema.rb17
3 files changed, 10 insertions, 20 deletions
diff --git a/db/migrate/20160818090010_add_message_to_line_sync_operation.rb b/db/migrate/20160818090010_add_message_to_line_sync_operation.rb
deleted file mode 100644
index 37b3e5af6..000000000
--- a/db/migrate/20160818090010_add_message_to_line_sync_operation.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-class AddMessageToLineSyncOperation < ActiveRecord::Migration
- def change
- add_column :line_sync_operations, :message, :string
- end
-end
diff --git a/db/migrate/20160627124541_create_line_sync_operations.rb b/db/migrate/20160927085857_drop_line_sync_operations.rb
index ec32cf4ac..44e774604 100644
--- a/db/migrate/20160627124541_create_line_sync_operations.rb
+++ b/db/migrate/20160927085857_drop_line_sync_operations.rb
@@ -1,5 +1,9 @@
-class CreateLineSyncOperations < ActiveRecord::Migration
- def change
+class DropLineSyncOperations < ActiveRecord::Migration
+ def up
+ drop_table :line_sync_operations if table_exists?(:line_sync_operations)
+ end
+
+ def down
create_table :line_sync_operations do |t|
t.string :status
t.references :line_referential_sync, index: true
diff --git a/db/schema.rb b/db/schema.rb
index 0c7e6ee68..359e1c5f5 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,10 +11,11 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20160926134852) do
+ActiveRecord::Schema.define(version: 20160927085857) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
+ enable_extension "hstore"
enable_extension "postgis"
create_table "access_links", force: true do |t|
@@ -290,16 +291,6 @@ ActiveRecord::Schema.define(version: 20160926134852) do
t.integer "sync_interval", default: 1
end
- create_table "line_sync_operations", force: true do |t|
- t.string "status"
- t.integer "line_referential_sync_id"
- t.datetime "created_at"
- t.datetime "updated_at"
- t.string "message"
- end
-
- add_index "line_sync_operations", ["line_referential_sync_id"], :name => "index_line_sync_operations_on_line_referential_sync_id"
-
create_table "lines", force: true do |t|
t.integer "network_id", limit: 8
t.integer "company_id", limit: 8
@@ -410,10 +401,10 @@ ActiveRecord::Schema.define(version: 20160926134852) do
t.integer "object_version"
t.datetime "creation_time"
t.string "creator_id"
- t.float "distance"
- t.boolean "no_processing"
t.spatial "input_geometry", limit: {:srid=>4326, :type=>"line_string"}
t.spatial "processed_geometry", limit: {:srid=>4326, :type=>"line_string"}
+ t.float "distance"
+ t.boolean "no_processing"
end
create_table "routes", force: true do |t|