Sha256: 6de2955890f9777a1eba9465290bbadbbca3afd0e2b8ddb649c505b9dc341453

Contents?: true

Size: 246 Bytes

Versions: 4

Compression:

Stored size: 246 Bytes

Contents

class CreateJoinTableCategoriesListings < ActiveRecord::Migration[7.0]
  def change

    create_join_table :categories, :listings do |t|

      # t.index [:category_id, :listing_id]
      # t.index [:listing_id, :category_id]

    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phcmemberspro-92.0.3 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcmemberspro-92.0.2 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcmemberspro-92.0.1 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcmemberspro-92.0.0 db/migrate/20190317215659_create_join_table_categories_listings.rb