class Rapidfire::Generators::AfterSurveyContentMigrationGenerator

Public Class Methods

next_migration_number(dir) click to toggle source
# File lib/generators/rapidfire/after_survey_content_migration_generator.rb, line 8
def self.next_migration_number(dir)
  Time.now.utc.strftime("%Y%m%d%H%M%S")
end

Public Instance Methods

copy_migrations() click to toggle source
# File lib/generators/rapidfire/after_survey_content_migration_generator.rb, line 12
def copy_migrations
  migration_template "migrations/add_after_survey_content_to_survey.rb", "db/migrate/add_after_survey_content_to_survey.rapidfire.rb"
end