mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-11-28 08:30:27 +08:00
13 lines
404 B
Ruby
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
|