Sha256: 0f125710f2d51bf40932c38da2541d2e6b0c6222f61c05958f81dac543768a16
Contents?: true
Size: 370 Bytes
Versions: 45
Compression:
Stored size: 370 Bytes
Contents
class <%= habtm_migration_name.camelize %> < ActiveRecord::Migration def change create_table :<%= habtm_table_name %>, id: false do |t| t.belongs_to :<%= sorted_sg[0] %> t.belongs_to :<%= sorted_sg[1] %> end add_index :<%= habtm_table_name %>, :<%= sorted_sg[0] %>_id add_index :<%= habtm_table_name %>, :<%= sorted_sg[1] %>_id end end
Version data entries
45 entries across 45 versions & 1 rubygems