Sha256: c6899abc7f4a809f9bac9435d4e20f61c046408b8bd741017f040af3027ae5ce

Contents?: true

Size: 140 Bytes

Versions: 4

Compression:

Stored size: 140 Bytes

Contents

class EditCartsIndex < ActiveRecord::Migration[7.0]
  def change
      add_index :carts, [:user_id, :restaurant_id], unique: true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
easy_seeds-1.0.4 demo/db/migrate/20230129231213_edit_carts_index.rb
easy_seeds-1.0.3 demo/db/migrate/20230129231213_edit_carts_index.rb
easy_seeds-1.0.2 demo/db/migrate/20230129231213_edit_carts_index.rb
easy_seeds-1.0.0 demo/db/migrate/20230129231213_edit_carts_index.rb