Sha256: 61022e5bf2218a9eb77b078b619b831104d15a16095988fbb02aab85b78307cd
Contents?: true
Size: 697 Bytes
Versions: 44
Compression:
Stored size: 697 Bytes
Contents
class RenameAutomaticExploitationIndex < ActiveRecord::Migration def up if index_name_exists? :automatic_exploitation_matches, :index_automatic_exploitation_matches_on_ref_id, false rename_index :automatic_exploitation_matches, :index_automatic_exploitation_matches_on_ref_id, :index_automatic_exploitation_matches_on_module_detail_id end end def down if index_name_exists? :automatic_exploitation_matches, :index_automatic_exploitation_matches_on_module_detail_id, false rename_index :automatic_exploitation_matches, :index_automatic_exploitation_matches_on_module_detail_id, :index_automatic_exploitation_matches_on_ref_id end end end
Version data entries
44 entries across 44 versions & 1 rubygems