Sha256: 2e07c579cb5e85fbe8d7d2310d123ce2fed4cbd871cbc8defa63527814de14d2

Contents?: true

Size: 441 Bytes

Versions: 18

Compression:

Stored size: 441 Bytes

Contents

require "rails/generators/base"

module PgSearch
  module Migration
    class MultisearchGenerator < Rails::Generators::Base
      source_root Pathname.new(File.dirname(__FILE__)).join("templates")

      def create_migration
        now = Time.now.utc
        filename = "#{now.strftime('%Y%m%d%H%M%S')}_create_pg_search_documents.rb"
        copy_file "create_pg_search_documents.rb", "db/migrate/#{filename}"
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
pg_search-0.7.4 lib/pg_search/migration/multisearch_generator.rb
pg_search-0.7.3 lib/pg_search/migration/multisearch_generator.rb
pg_search-0.7.2 lib/pg_search/migration/multisearch_generator.rb
pg_search-0.7.1 lib/pg_search/migration/multisearch_generator.rb
pg_search-0.7.0 lib/pg_search/migration/multisearch_generator.rb
pg_search-0.6.4 lib/pg_search/migration/multisearch_generator.rb
pg_search-0.6.3 lib/pg_search/migration/multisearch_generator.rb
pg_search-0.6.2 lib/pg_search/migration/multisearch_generator.rb
pg_search-0.6.1 lib/pg_search/migration/multisearch_generator.rb
pg_search-0.6.0 lib/pg_search/migration/multisearch_generator.rb
pg_search-0.5.7 lib/pg_search/migration/multisearch_generator.rb
pg_search-0.5.6 lib/pg_search/migration/multisearch_generator.rb
pg_search-0.5.5 lib/pg_search/migration/multisearch_generator.rb
pg_search-0.5.4 lib/pg_search/migration/multisearch_generator.rb
pg_search-0.5.3 lib/pg_search/migration/multisearch_generator.rb
pg_search-0.5.2 lib/pg_search/migration/multisearch_generator.rb
pg_search-0.5.1 lib/pg_search/migration/multisearch_generator.rb
pg_search-0.5 lib/pg_search/migration/multisearch_generator.rb