Sha256: 3a8348024ae6fd360436f37c0608a442386640c4bf7bb89b4c945ca17a1db65f

Contents?: true

Size: 481 Bytes

Versions: 5

Compression:

Stored size: 481 Bytes

Contents

class AddPgSearchDmetaphoneSupportFunctions < ActiveRecord::Migration<%= migration_version %>
  def up
    say_with_time("Adding support functions for pg_search :dmetaphone") do
      execute <<~'SQL'.squish
<%= indent(read_sql_file("dmetaphone"), 8) %>
      SQL
    end
  end

  def down
    say_with_time("Dropping support functions for pg_search :dmetaphone") do
      execute <<~'SQL'.squish
<%= indent(read_sql_file("uninstall_dmetaphone"), 8) %>
      SQL
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pg_search-2.3.7 lib/pg_search/migration/templates/add_pg_search_dmetaphone_support_functions.rb.erb
pg_search-2.3.6 lib/pg_search/migration/templates/add_pg_search_dmetaphone_support_functions.rb.erb
pg_search-2.3.5 lib/pg_search/migration/templates/add_pg_search_dmetaphone_support_functions.rb.erb
pg_search-2.3.4 lib/pg_search/migration/templates/add_pg_search_dmetaphone_support_functions.rb.erb
pg_search-2.3.3 lib/pg_search/migration/templates/add_pg_search_dmetaphone_support_functions.rb.erb