From 99efe59605c9d2e8a3ac3139038860458cb43d8e Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Mon, 9 May 2022 12:12:39 +0100 Subject: [PATCH] Add offset to organisation id --- db/migrate/20220509110837_add_id_offset_organisations.rb | 5 +++++ db/schema.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20220509110837_add_id_offset_organisations.rb diff --git a/db/migrate/20220509110837_add_id_offset_organisations.rb b/db/migrate/20220509110837_add_id_offset_organisations.rb new file mode 100644 index 000000000..10e9dca9a --- /dev/null +++ b/db/migrate/20220509110837_add_id_offset_organisations.rb @@ -0,0 +1,5 @@ +class AddIdOffsetOrganisations < ActiveRecord::Migration[7.0] + def change + execute "SELECT setval('organisations_id_seq', 100000000)" + end +end diff --git a/db/schema.rb b/db/schema.rb index ddab93cfe..14a80ad6f 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.0].define(version: 2022_05_06_092350) do +ActiveRecord::Schema[7.0].define(version: 2022_05_09_110837) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql"