Sha256: 8af1813912eb33d67521ce1e250d3b8947029425b3d9d8a70a81d063b70b0319

Contents?: true

Size: 295 Bytes

Versions: 10

Compression:

Stored size: 295 Bytes

Contents

class CarloadEnableZhparserExtension < ActiveRecord::Migration[5.0]
  def change
    enable_extension :zhparser
    execute 'create text search configuration zhparser (parser = zhparser);'
    execute 'alter text search configuration zhparser add mapping for n,v,a,i,e,l with simple;'
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
carload-0.5.3 db/migrate/20161030074822_carload_enable_zhparser_extension.rb
carload-0.5.2 db/migrate/20161030074822_carload_enable_zhparser_extension.rb
carload-0.5.1 db/migrate/20161030074822_carload_enable_zhparser_extension.rb
carload-0.5.0 db/migrate/20161030074822_carload_enable_zhparser_extension.rb
carload-0.4.5 db/migrate/20161030074822_carload_enable_zhparser_extension.rb
carload-0.4.4 db/migrate/20161030074822_carload_enable_zhparser_extension.rb
carload-0.4.3 db/migrate/20161030074822_carload_enable_zhparser_extension.rb
carload-0.4.2 db/migrate/20161030074822_carload_enable_zhparser_extension.rb
carload-0.4.1 db/migrate/20161030074822_carload_enable_zhparser_extension.rb
carload-0.4.0 db/migrate/20161030074822_carload_enable_zhparser_extension.rb