Files
astuto/db/migrate/20240404161306_add_slug_to_boards.rb
2024-04-05 18:23:31 +02:00

8 lines
173 B
Ruby

class AddSlugToBoards < ActiveRecord::Migration[6.1]
def change
add_column :boards, :slug, :string
add_index :boards, [:slug, :tenant_id], unique: true
end
end