lib/generators/rapidfire/active_survey_migration_generator.rb
module Rapidfire
module Generators
class ActiveSurveyMigrationGenerator < ::Rails::Generators::Base
include Rails::Generators::Migration
source_root File.expand_path('../templates', __FILE__)
def self.next_migration_number(dir)
Time.now.utc.strftime("%Y%m%d%H%M%S")
end
def copy_migrations
migration_template "migrations/add_active_to_survey.rb", "db/migrate/add_active_to_survey.rapidfire.rb"
end
end
end
end