require 'rails_generator/generators/components/model/model_generator' require 'active_record' class RspecDmModelGenerator { :migration_name => "Create#{class_name.pluralize.gsub(/::/, '')}" }, :migration_file_name => "create_#{file_path.gsub(/\//, '_').pluralize}" end end end end