aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXinhui2016-09-29 15:18:15 +0200
committerXinhui2016-09-29 15:18:15 +0200
commit98a5b302923bf369c14e35a506af94b84e32c7ee (patch)
tree8dc5f48811269d60dfb6e0dc80c6b0202fd2c8d7
parentf5a4f5056ccb72d6b097594298581f8bb1400dba (diff)
downloadchouette-core-98a5b302923bf369c14e35a506af94b84e32c7ee.tar.bz2
Add started_at, ended_at, status to stop_area_referential_syncs
Refs #1710
-rw-r--r--config/initializers/apartment.rb1
-rw-r--r--db/migrate/20160929131334_add_ended_at_to_stop_area_referential_syncs.rb5
-rw-r--r--db/migrate/20160929131401_add_started_at_to_stop_area_referential_syncs.rb5
-rw-r--r--db/migrate/20160929131440_add_status_to_stop_area_referential_syncs.rb5
-rw-r--r--db/schema.rb5
5 files changed, 20 insertions, 1 deletions
diff --git a/config/initializers/apartment.rb b/config/initializers/apartment.rb
index b69db2b6d..0178ff938 100644
--- a/config/initializers/apartment.rb
+++ b/config/initializers/apartment.rb
@@ -25,6 +25,7 @@ Apartment.configure do |config|
"Api::V1::ApiKey",
"RuleParameterSet",
"StopAreaReferential",
+ "StopAreaReferentialSync",
"Chouette::StopArea",
"LineReferential",
"LineReferentialSync",
diff --git a/db/migrate/20160929131334_add_ended_at_to_stop_area_referential_syncs.rb b/db/migrate/20160929131334_add_ended_at_to_stop_area_referential_syncs.rb
new file mode 100644
index 000000000..892c20d8d
--- /dev/null
+++ b/db/migrate/20160929131334_add_ended_at_to_stop_area_referential_syncs.rb
@@ -0,0 +1,5 @@
+class AddEndedAtToStopAreaReferentialSyncs < ActiveRecord::Migration
+ def change
+ add_column :stop_area_referential_syncs, :ended_at, :datetime
+ end
+end
diff --git a/db/migrate/20160929131401_add_started_at_to_stop_area_referential_syncs.rb b/db/migrate/20160929131401_add_started_at_to_stop_area_referential_syncs.rb
new file mode 100644
index 000000000..d6f0838d4
--- /dev/null
+++ b/db/migrate/20160929131401_add_started_at_to_stop_area_referential_syncs.rb
@@ -0,0 +1,5 @@
+class AddStartedAtToStopAreaReferentialSyncs < ActiveRecord::Migration
+ def change
+ add_column :stop_area_referential_syncs, :started_at, :datetime
+ end
+end
diff --git a/db/migrate/20160929131440_add_status_to_stop_area_referential_syncs.rb b/db/migrate/20160929131440_add_status_to_stop_area_referential_syncs.rb
new file mode 100644
index 000000000..6cdca1917
--- /dev/null
+++ b/db/migrate/20160929131440_add_status_to_stop_area_referential_syncs.rb
@@ -0,0 +1,5 @@
+class AddStatusToStopAreaReferentialSyncs < ActiveRecord::Migration
+ def change
+ add_column :stop_area_referential_syncs, :status, :string
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index ad71bd9d8..e3e669450 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: 20160928084508) do
+ActiveRecord::Schema.define(version: 20160929131440) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -458,6 +458,9 @@ ActiveRecord::Schema.define(version: 20160928084508) do
t.integer "stop_area_referential_id"
t.datetime "created_at"
t.datetime "updated_at"
+ t.datetime "ended_at"
+ t.datetime "started_at"
+ t.string "status"
end
add_index "stop_area_referential_syncs", ["stop_area_referential_id"], :name => "index_stop_area_referential_syncs_on_stop_area_referential_id"