aboutsummaryrefslogtreecommitdiff
path: root/db/migrate/20201008190558_create_join_table_resource_sections.rb
blob: d01c27f2658cf7be2f46b9debd0e14ca148e6346 (plain)
1
2
3
4
5
6
7
8
class CreateJoinTableResourceSections < ActiveRecord::Migration[6.0]
  def change
    create_join_table :resources, :sections do |t|
      # t.index [:resource_id, :section_id]
      # t.index [:section_id, :resource_id]
    end
  end
end