Sha256: cee1308685394dc347bfbde1a1442161e399e3039cc7a595e8d63d2d13e052fb

Contents?: true

Size: 232 Bytes

Versions: 1

Compression:

Stored size: 232 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration
  def up 
    execute "CREATE INDEX <%=index_name %> on <%=table_name %> USING gin (<%=column_name%>)"
  end
  def down
    execute "DROP INDEX <%=index_name %>"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
search_steroids-0.0.1 lib/generators/enable_tsearch/templates/add_tsearch_index_migration.rb