Files
ubicloud/migrate/20240209_postgres_multiple_servers.rb

13 lines
316 B
Ruby

# frozen_string_literal: true
Sequel.migration do
no_transaction
change do
alter_table(:postgres_server) do
add_column :representative_at, :timestamptz, null: true, default: nil
add_index :resource_id, unique: true, where: Sequel.~(representative_at: nil), concurrently: true
end
end
end