From aafda8b5d8e6dbd80ed56fd469d5ada5dceb3a67 Mon Sep 17 00:00:00 2001 From: Guillaume Date: Thu, 9 Nov 2017 15:20:54 +0100 Subject: add object_id_format to migrations, create module for call Referential, Line Referential, StopAreaReferential in models, add Enumerize in models Refs #4941 --- db/migrate/20171109100955_add_object_id_format_to_workbenches.rb | 5 +++++ db/migrate/20171109101523_add_object_id_format_to_referential.rb | 5 +++++ .../20171109101545_add_object_id_format_to_line_referential.rb | 5 +++++ .../20171109101605_add_object_id_format_to_stop_area_referential.rb | 5 +++++ 4 files changed, 20 insertions(+) create mode 100644 db/migrate/20171109100955_add_object_id_format_to_workbenches.rb create mode 100644 db/migrate/20171109101523_add_object_id_format_to_referential.rb create mode 100644 db/migrate/20171109101545_add_object_id_format_to_line_referential.rb create mode 100644 db/migrate/20171109101605_add_object_id_format_to_stop_area_referential.rb (limited to 'db/migrate') diff --git a/db/migrate/20171109100955_add_object_id_format_to_workbenches.rb b/db/migrate/20171109100955_add_object_id_format_to_workbenches.rb new file mode 100644 index 000000000..0e5e57643 --- /dev/null +++ b/db/migrate/20171109100955_add_object_id_format_to_workbenches.rb @@ -0,0 +1,5 @@ +class AddObjectIdFormatToWorkbenches < ActiveRecord::Migration + def change + add_column :workbenches, :objectid_format, :string + end +end diff --git a/db/migrate/20171109101523_add_object_id_format_to_referential.rb b/db/migrate/20171109101523_add_object_id_format_to_referential.rb new file mode 100644 index 000000000..fed630b75 --- /dev/null +++ b/db/migrate/20171109101523_add_object_id_format_to_referential.rb @@ -0,0 +1,5 @@ +class AddObjectIdFormatToReferential < ActiveRecord::Migration + def change + add_column :referentials, :objectid_format, :string + end +end diff --git a/db/migrate/20171109101545_add_object_id_format_to_line_referential.rb b/db/migrate/20171109101545_add_object_id_format_to_line_referential.rb new file mode 100644 index 000000000..5d2fc9f4f --- /dev/null +++ b/db/migrate/20171109101545_add_object_id_format_to_line_referential.rb @@ -0,0 +1,5 @@ +class AddObjectIdFormatToLineReferential < ActiveRecord::Migration + def change + add_column :line_referentials, :objectid_format, :string + end +end diff --git a/db/migrate/20171109101605_add_object_id_format_to_stop_area_referential.rb b/db/migrate/20171109101605_add_object_id_format_to_stop_area_referential.rb new file mode 100644 index 000000000..ffa77e2ed --- /dev/null +++ b/db/migrate/20171109101605_add_object_id_format_to_stop_area_referential.rb @@ -0,0 +1,5 @@ +class AddObjectIdFormatToStopAreaReferential < ActiveRecord::Migration + def change + add_column :stop_area_referentials, :objectid_format, :string + end +end -- cgit v1.2.3