Updated

db/migrate / 20170622114605_drop_legacy_archive_indexes.rb

A
20 lines of codes
2 methods
2.0 complexity/method
1 churn
4.0 complexity
0 duplications
class DropLegacyArchiveIndexes < ActiveRecord::Migration
  1. DropLegacyArchiveIndexes has no descriptive comment
def up execute "DROP INDEX index_archived_petitions_on_title;" execute "DROP INDEX index_archived_petitions_on_description;" end def down execute <<-SQL CREATE INDEX index_archived_petitions_on_title ON archived_petitions USING gin(to_tsvector('english', title)); SQL execute <<-SQL CREATE INDEX index_archived_petitions_on_description ON archived_petitions USING gin(to_tsvector('english', description)); SQL end end