class Mv::Core::Services::Uninstall

Public Instance Methods

execute() click to toggle source
# File lib/mv/core/services/uninstall.rb, line 7
def execute
  if db.data_source_exists?(:migration_validators)
    Mv::Core::Services::DeleteConstraints.new.execute

    ::ActiveRecord::Migration.say_with_time('drop migration_validators table') do
      db.drop_table(:migration_validators)
    end
  end
end

Private Instance Methods

db() click to toggle source
# File lib/mv/core/services/uninstall.rb, line 19
def db
  ::ActiveRecord::Base.connection
end