ubicloud/migrate/20251030_remove_pg_resource_fw_rules.rb

13 lines
404 B
Ruby

# frozen_string_literal: true
Sequel.migration do
revert do
create_table(:postgres_firewall_rule) do
column :id, :uuid, primary_key: true, null: false
column :cidr, :cidr, null: false
foreign_key :postgres_resource_id, :postgres_resource, null: false, type: :uuid
add_column :description, :text, collate: '"C"'
unique [:postgres_resource_id, :cidr]
end
end
end