class AllowStoresWithoutARepository < ActiveRecord::Migration[8.1]
  # A store repository is now optional. The client only ever needed identity from
  # it — a name, a catalog and a slug — and the engine's own defaults cover
  # everything else, so a record with a catalog URL is a complete store. A
  # repository is still honoured when there is one: it stays the authority on how
  # that store behaves.
  def change
    change_column_null :stores, :store_repository_url, true
  end
end
