mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 03:07:52 +01:00
7 lines
178 B
Ruby
7 lines
178 B
Ruby
class ChangeSlugPostUniqueConstraint < ActiveRecord::Migration[6.1]
|
|
def change
|
|
remove_index :posts, :slug
|
|
add_index :posts, [:slug, :tenant_id], unique: true
|
|
end
|
|
end
|