Class: DbSubsetter::Dialect::MySQL

Inherits:
Generic
  • Object
show all
Defined in:
lib/db_subsetter/dialect/my_sql.rb

Class Method Summary collapse

Class Method Details

.importObject



4
5
6
7
8
# File 'lib/db_subsetter/dialect/my_sql.rb', line 4

def self.import
  ActiveRecord::Base.connection.execute("SET FOREIGN_KEY_CHECKS=0;")
  yield
  ActiveRecord::Base.connection.execute("SET FOREIGN_KEY_CHECKS=1;")
end

.integrity_problemsObject

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/db_subsetter/dialect/my_sql.rb', line 10

def self.integrity_problems
  raise NotImplementedError.new("integrity_problems not implemented for MySQL")
end