require 'rails/generators/active_record' class SharpSocialGenerator < ActiveRecord::Generators::Base source_root File.expand_path('../templates', __FILE__) def generate_model copy_file 'follow.rb', "app/models/follow.rb" end def generate_migration migration_template 'migration.rb', "db/migrate/create_sharp_social" end end