Sha256: 715845acc418d022760c312b7de179be4ac667ed644efe221b2d21192e0d16e3

Contents?: true

Size: 388 Bytes

Versions: 9

Compression:

Stored size: 388 Bytes

Contents

module Cms
  class MigrationGenerator < ::Rails::Generators::NamedBase
    include ::Rails::Generators::Migration

    source_root File.expand_path('../templates', __FILE__)

    def self.next_migration_number(dirname)
      Time.now.utc.strftime('%Y%m%d%H%M%S')
    end

    def create_migration_file
      migration_template('migration.rb', "cms/migrate/#{file_name}")
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
infopark_cloud_connector-6.8.3.174.51542603 lib/generators/cms/migration/migration_generator.rb
infopark_cloud_connector-6.8.3.115.227021242 lib/generators/cms/migration/migration_generator.rb
infopark_cloud_connector-6.8.3.73.75172665 lib/generators/cms/migration/migration_generator.rb
infopark_cloud_connector-6.8.3.2.153416031 lib/generators/cms/migration/migration_generator.rb
infopark_cloud_connector-6.8.3.67.110847540 lib/generators/cms/migration/migration_generator.rb
infopark_cloud_connector-6.8.3.1.23895778 lib/generators/cms/migration/migration_generator.rb
infopark_cloud_connector-6.8.2.36.82613853 lib/generators/cms/migration/migration_generator.rb
infopark_cloud_connector-6.8.2.7.128454143 lib/generators/cms/migration/migration_generator.rb
infopark_cloud_connector-6.8.1.26.236500544 lib/generators/cms/migration/migration_generator.rb