Sha256: d94bce9c4e657a45530cdf57470292117013a6551cc933c24887cd64795189da

Contents?: true

Size: 215 Bytes

Versions: 1

Compression:

Stored size: 215 Bytes

Contents

class AddTrigramIndexToFoos < ActiveRecord::Migration
  def up 
    execute "CREATE INDEX idx_trgm_on_foos on foos USING gin (name gin_trgm_ops)"
  end
  def down
    execute "DROP INDEX idx_trgm_on_foos"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
search_steroids-0.0.1 spec/dummy/spec/tmp/db/migrate/20131010200234_add_trigram_index_to_foos.rb