Module: ArJdbc::Tasks::DatabaseTasksMSSQL::ClassMethods

Defined in:
lib/arjdbc/tasks/mssql_database_tasks.rb

Instance Method Summary collapse

Instance Method Details

#check_protected_environments!Object



132
133
134
135
136
137
138
139
140
# File 'lib/arjdbc/tasks/mssql_database_tasks.rb', line 132

def check_protected_environments!
  super
rescue ActiveRecord::JDBCError => e
  case e.message
  when /cannot open database .* requested by the login/i
  else
    raise
  end
end