Browse Source

Add offset to organisation id

pull/559/head
baarkerlounger 3 years ago
parent
commit
99efe59605
  1. 5
      db/migrate/20220509110837_add_id_offset_organisations.rb
  2. 2
      db/schema.rb

5
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

2
db/schema.rb

@ -10,7 +10,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # 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 # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"

Loading…
Cancel
Save