Module: Rmre::DbUtils
- Defined in:
- lib/rmre/db_utils.rb
Constant Summary collapse
- COLUMN_CONVERSIONS =
{ "Mysql2" => { :raw => :binary, "LONG" => :text } }
Class Method Summary collapse
Class Method Details
.convert_column_type(target_adapter_name, start_type) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/rmre/db_utils.rb', line 10 def self.convert_column_type(target_adapter_name, start_type) if COLUMN_CONVERSIONS[target_adapter_name] && COLUMN_CONVERSIONS[target_adapter_name][start_type] return COLUMN_CONVERSIONS[target_adapter_name][start_type] end return start_type end |