diff options
Diffstat (limited to 'db/migrate/20201008190558_create_join_table_resource_sections.rb')
-rw-r--r-- | db/migrate/20201008190558_create_join_table_resource_sections.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20201008190558_create_join_table_resource_sections.rb b/db/migrate/20201008190558_create_join_table_resource_sections.rb new file mode 100644 index 0000000..d01c27f --- /dev/null +++ b/db/migrate/20201008190558_create_join_table_resource_sections.rb @@ -0,0 +1,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 |