aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorZog2018-02-26 09:58:16 +0100
committerAlban Peignier2018-03-14 15:03:03 +0100
commit8baaa7947ea1e229f67149d221dea76450f040a5 (patch)
treef70abb8951d0f682342452d66c2eca854c2651f6 /db
parent1457744f19109a402f76b7d1aafcb1709e38f877 (diff)
downloadchouette-core-8baaa7947ea1e229f67149d221dea76450f040a5.tar.bz2
Refs #5972 @1h; Automatic registration_number generation
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20180226074739_add_registration_number_format_to_stop_area_referentials.rb5
-rw-r--r--db/schema.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/db/migrate/20180226074739_add_registration_number_format_to_stop_area_referentials.rb b/db/migrate/20180226074739_add_registration_number_format_to_stop_area_referentials.rb
new file mode 100644
index 000000000..3f4231acb
--- /dev/null
+++ b/db/migrate/20180226074739_add_registration_number_format_to_stop_area_referentials.rb
@@ -0,0 +1,5 @@
+class AddRegistrationNumberFormatToStopAreaReferentials < ActiveRecord::Migration
+ def change
+ add_column :stop_area_referentials, :registration_number_format, :string
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 885f12e24..cf0a32a3b 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -12,7 +12,6 @@
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20180308095116) do
-
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
enable_extension "postgis"
@@ -806,6 +805,7 @@ 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|