Sha256: 696c016599330b0231146a103ff7be17d12bf18bfe17a64a2c1fa74ef4e60fb3

Contents?: true

Size: 242 Bytes

Versions: 4

Compression:

Stored size: 242 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
phcmembers-68.0.3 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcmembers-68.0.2 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcmembers-68.0.1 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcmembers-68.0.0 db/migrate/20190317215659_create_join_table_categories_listings.rb