Sha256: b45c2b6340c942755d39326af7f909d9da3287f38bec0b426b76b6a26f0ce5c4

Contents?: true

Size: 230 Bytes

Versions: 11

Compression:

Stored size: 230 Bytes

Contents

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

11 entries across 11 versions & 1 rubygems

Version Path
phcdevworks_press-1.3.1 db/migrate/20190315173237_create_join_table_categories_posts.rb
phcdevworks_press-1.3.0 db/migrate/20190315173237_create_join_table_categories_posts.rb
phcdevworks_press-1.2.1 db/migrate/20190315173237_create_join_table_categories_posts.rb
phcdevworks_press-1.2.0 db/migrate/20190315173237_create_join_table_categories_posts.rb
phcdevworks_press-1.1.2 db/migrate/20190315173237_create_join_table_categories_posts.rb
phcdevworks_press-1.1.1 db/migrate/20190315173237_create_join_table_categories_posts.rb
phcdevworks_press-1.1.0 db/migrate/20190315173237_create_join_table_categories_posts.rb
phcdevworks_press-1.0.1 db/migrate/20190315173237_create_join_table_categories_posts.rb
phcdevworks_press-1.0.0 db/migrate/20190315173237_create_join_table_categories_posts.rb
phcdevworks_press-0.2.0 db/migrate/20190315173237_create_join_table_categories_posts.rb
phcdevworks_press-0.1.0 db/migrate/20190315173237_create_join_table_categories_posts.rb