diff options
| author | Zog | 2018-02-26 09:58:16 +0100 |
|---|---|---|
| committer | Alban Peignier | 2018-03-14 15:03:03 +0100 |
| commit | 8baaa7947ea1e229f67149d221dea76450f040a5 (patch) | |
| tree | f70abb8951d0f682342452d66c2eca854c2651f6 /db | |
| parent | 1457744f19109a402f76b7d1aafcb1709e38f877 (diff) | |
| download | chouette-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.rb | 5 | ||||
| -rw-r--r-- | db/schema.rb | 2 |
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| |
