Module: ActiveRecord::ConnectionAdapters::SchemaStatements
- Defined in:
- lib/oracle-enhanced-enhanced.rb
Instance Method Summary collapse
-
#convert_clob_to_varchar2(table_name, column_name, varchar2_length = ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter::VARCHAR2_MAX_LENGTH, temp_column_name = nil) ⇒ Object
Convert an existing CLOB field into a VARCHAR2.
-
#convert_varchar2_to_clob(table_name, column_name, temp_column_name = nil) ⇒ Object
Convert an existing VARCHAR2 field into a CLOB.
Instance Method Details
#convert_clob_to_varchar2(table_name, column_name, varchar2_length = ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter::VARCHAR2_MAX_LENGTH, temp_column_name = nil) ⇒ Object
Convert an existing CLOB field into a VARCHAR2. For use in migrations.
53 54 55 |
# File 'lib/oracle-enhanced-enhanced.rb', line 53 def convert_clob_to_varchar2(table_name, column_name, varchar2_length = ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter::VARCHAR2_MAX_LENGTH, temp_column_name = nil) convert_text_column_storage_type table_name, column_name, "varchar2(#{varchar2_length})", temp_column_name end |
#convert_varchar2_to_clob(table_name, column_name, temp_column_name = nil) ⇒ Object
Convert an existing VARCHAR2 field into a CLOB. For use in migrations.
58 59 60 |
# File 'lib/oracle-enhanced-enhanced.rb', line 58 def convert_varchar2_to_clob(table_name, column_name, temp_column_name = nil) convert_text_column_storage_type table_name, column_name, 'clob', temp_column_name end |