mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-30 12:45:48 -04:00
9 lines
213 B
Ruby
9 lines
213 B
Ruby
# frozen_string_literal: true
|
|
|
|
class MissingUniqueness < ActiveRecord::Migration[6.0]
|
|
def change
|
|
add_index(:garden_types, [:name], unique: true)
|
|
add_index(:garden_types, [:slug], unique: true)
|
|
end
|
|
end
|