Module: Ridgepole::Ext::AbstractAdapter::DisableTableOptions
- Defined in:
- lib/ridgepole/ext/abstract_adapter/disable_table_options.rb
Instance Method Summary collapse
Instance Method Details
#table_options(table_name) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/ridgepole/ext/abstract_adapter/disable_table_options.rb', line 16 def (table_name) = super if && @__without_table_options .delete(:options) # For >= AR 6.1.0 .delete(:charset) .delete(:collation) end end |
#without_table_options(value) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/ridgepole/ext/abstract_adapter/disable_table_options.rb', line 9 def (value) @__without_table_options = value yield ensure remove_instance_variable(:@__without_table_options) end |