Class: FuzzyMatch::CachedResult

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/fuzzy_match/cached_result.rb

Defined Under Namespace

Modules: ActiveRecordBaseExtension

Class Method Summary collapse

Class Method Details

.setup(from_scratch = false) ⇒ Object



12
13
14
15
16
17
# File 'lib/fuzzy_match/cached_result.rb', line 12

def setup(from_scratch = false)
  if from_scratch
    connection.drop_table :fuzzy_match_cached_results rescue nil
  end
  auto_upgrade!
end