Sha256: 7ec6429c7e2c7b8159c42c8d427b53160b5595868960ac423d04ec517b78eebe

Contents?: true

Size: 503 Bytes

Versions: 5

Compression:

Stored size: 503 Bytes

Contents

module Rapidfire
  module Generators
    class UpgradeMigrationGenerator < ::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/rename_answer_groups_and_question_groups.rb", "db/migrate/rename_answer_groups_and_question_groups.rb"
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rapidfire-8.0.0 lib/generators/rapidfire/upgrade_migration_generator.rb
rapidfire-5.0.0 lib/generators/rapidfire/upgrade_migration_generator.rb
rapidfire-4.0.0 lib/generators/rapidfire/upgrade_migration_generator.rb
rapidfire-3.1.0 lib/generators/rapidfire/upgrade_migration_generator.rb
rapidfire-3.0.0 lib/generators/rapidfire/upgrade_migration_generator.rb