Module: Taps::AdapterHacks

Extended by:
AdapterHacks
Included in:
AdapterHacks
Defined in:
lib/taps/adapter_hacks.rb

Constant Summary collapse

LIST =
{
	:all => ['non_rails_schema_dump'],
	:mysql => ['invalid_text_limit', 'mysql_invalid_primary_key'],
	:postgresql => ['invalid_text_limit', 'invalid_binary_limit']
}

Instance Method Summary collapse

Instance Method Details

#load(adapter) ⇒ Object



11
12
13
14
15
16
17
18
19
# File 'lib/taps/adapter_hacks.rb', line 11

def load(adapter)
	LIST[:all].each do |r|
		require "taps/adapter_hacks/#{r}"
	end

	(LIST[adapter.to_sym] || []).each do |r|
		require "taps/adapter_hacks/#{r}"
	end
end