Sha256: fed344cfc533d396a3d5bad8b014433dc9c2b35ee5c8cc6b81aadb8e2c50bc22

Contents?: true

Size: 230 Bytes

Versions: 9

Compression:

Stored size: 230 Bytes

Contents

class CreateJoinTableCategoriesPosts < ActiveRecord::Migration[7.0]
  def change
    create_join_table :categories, :posts do |t|
      # t.index [:category_id, :post_id]
      # t.index [:post_id, :category_id]
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
phcpresspro-87.0.3 db/migrate/20190315173237_create_join_table_categories_posts.rb
phcpress-57.0.4 db/migrate/20190315173237_create_join_table_categories_posts.rb
phcpress-57.0.3 db/migrate/20190315173237_create_join_table_categories_posts.rb
phcpress-57.0.2 db/migrate/20190315173237_create_join_table_categories_posts.rb
phcpresspro-87.0.2 db/migrate/20190315173237_create_join_table_categories_posts.rb
phcpress-57.0.1 db/migrate/20190315173237_create_join_table_categories_posts.rb
phcpresspro-87.0.1 db/migrate/20190315173237_create_join_table_categories_posts.rb
phcpresspro-87.0.0 db/migrate/20190315173237_create_join_table_categories_posts.rb
phcpress-57.0.0 db/migrate/20190315173237_create_join_table_categories_posts.rb