Sha256: 3bd338630d205a358f3cb80965d793f1d591545d67253fc2eabed172427528b7

Contents?: true

Size: 386 Bytes

Versions: 1

Compression:

Stored size: 386 Bytes

Contents

class AddGistIndexToUnicoOccupationClassifications < ActiveRecord::Migration
  def up
    execute <<-SQL
      CREATE INDEX unico_occupation_classifications_name_gist_trgm_idx
        ON unico_occupation_classifications USING gist (name gist_trgm_ops);
    SQL
  end

  def down
    execute <<-SQL
      DROP INDEX unico_occupation_classifications_name_gist_trgm_idx;
    SQL
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unico-training-7.8.0 db/migrate/20130410235225_add_gist_index_to_unico_occupation_classifications.rb