Sha256: 17a45867324161c4243cca211f8e76141888482d00652b6d201df5fdbfdb9cce

Contents?: true

Size: 619 Bytes

Versions: 9

Compression:

Stored size: 619 Bytes

Contents

# encoding: utf-8
module WiceGrid #:nodoc:
  module Generators #:nodoc:
    class AddMigrationForSerializedQueriesGenerator < Rails::Generators::Base  #:nodoc:
      include Rails::Generators::Migration

      desc 'Add a migration which creates a table for serialized queries'

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

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

      def create_model_file
        migration_template 'create_wice_grid_serialized_queries.rb', 'db/migrate/create_wice_grid_serialized_queries.rb'
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
wice_grid_ms-3.6.2 lib/generators/wice_grid/add_migration_for_serialized_queries_generator.rb
wice_grid_ms-3.6.1 lib/generators/wice_grid/add_migration_for_serialized_queries_generator.rb
wice_grid_ms-3.6.0 lib/generators/wice_grid/add_migration_for_serialized_queries_generator.rb
wice_grid-3.6.0 lib/generators/wice_grid/add_migration_for_serialized_queries_generator.rb
wice_grid-3.6.0.pre5 lib/generators/wice_grid/add_migration_for_serialized_queries_generator.rb
wice_grid-3.6.0.pre4 lib/generators/wice_grid/add_migration_for_serialized_queries_generator.rb
wice_grid-3.6.0.pre3 lib/generators/wice_grid/add_migration_for_serialized_queries_generator.rb
wice_grid-3.6.0.pre2 lib/generators/wice_grid/add_migration_for_serialized_queries_generator.rb
wice_grid-3.6.0.pre1 lib/generators/wice_grid/add_migration_for_serialized_queries_generator.rb