Parent
%= class_name.pluralize %> < ActiveRecord::Migration[5.2] def change create_table :<%= controller_file_name %> do |t| <%- for ma in model_associations.select { |ma| ma.association_type == 'belongs_to' }.uniq { |ma| ma.association_name } -%> <%- if ma.foreign_key.present? -%> t.integer :<