Class: PgSearchable::Migrations::DmetaphoneGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- PgSearchable::Migrations::DmetaphoneGenerator
- Defined in:
- lib/pg_searchable/migrations/dmetaphone_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_migration ⇒ Object
8 9 10 11 12 |
# File 'lib/pg_searchable/migrations/dmetaphone_generator.rb', line 8 def create_migration now = Time.now.utc filename = "#{now.strftime('%Y%m%d%H%M%S')}_add_pg_searchable_dmetaphone_support_function.rb" template 'add_pg_searchable_dmetaphone_support_function.rb.erb', "db/migrate/#{filename}" end |