require 'rails/generators' require 'rails/generators/migration' module Pose module Generators class RemoveGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) def create_migration_file migration_template 'remove_migration.rb', 'db/migrate/remove_pose.rb' end def self.next_migration_number(path) Time.now.utc.strftime("%Y%m%d%H%M%S") end end end end