mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-04 05:42:15 +08:00
Project names are not unique anymore. Different users may have projects like "Prod", "Dev" etc.
15 lines
249 B
Ruby
15 lines
249 B
Ruby
# frozen_string_literal: true
|
|
|
|
Sequel.migration do
|
|
up do
|
|
alter_table(:project) do
|
|
drop_constraint :project_name_key, type: :unique
|
|
end
|
|
end
|
|
|
|
down do
|
|
alter_table(:project) do
|
|
add_unique_constraint :name
|
|
end
|
|
end
|
|
end
|