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