Class: Rapidfire::Generators::AfterSurveyContentMigrationGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Rapidfire::Generators::AfterSurveyContentMigrationGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/rapidfire/after_survey_content_migration_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(dir) ⇒ Object
8 9 10 |
# 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 |
Instance Method Details
#copy_migrations ⇒ Object
12 13 14 |
# 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 |