Sha256: 1bee8c61d2fc6292e99182611f475f2c91b7511a925b3b5700fd3cae58cb33ff

Contents?: true

Size: 244 Bytes

Versions: 18

Compression:

Stored size: 244 Bytes

Contents

class CreateJoinTableCategoriesListings < ActiveRecord::Migration[6.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

18 entries across 18 versions & 1 rubygems

Version Path
phcdevworks_members-2.3.1 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcdevworks_members-2.3.0 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcdevworks_members-2.2.1 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcdevworks_members-2.2.0 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcdevworks_members-2.1.1 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcdevworks_members-2.1.0 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcdevworks_members-2.0.0 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcdevworks_members-1.0.1 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcdevworks_members-1.0.0 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcdevworks_members-0.10.0 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcdevworks_members-0.8.0 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcdevworks_members-0.7.0 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcdevworks_members-0.6.0 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcdevworks_members-0.5.0 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcdevworks_members-0.4.0 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcdevworks_members-0.3.0 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcdevworks_members-0.2.0 db/migrate/20190317215659_create_join_table_categories_listings.rb
phcdevworks_members-0.1.0 db/migrate/20190317215659_create_join_table_categories_listings.rb