Class: ActiveRecord::ConnectionAdapters::TableDefinition
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::TableDefinition
- Defined in:
- lib/taps/adapter_hacks/invalid_text_limit.rb,
lib/taps/adapter_hacks/invalid_binary_limit.rb
Instance Method Summary collapse
Instance Method Details
#binary(*args) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/taps/adapter_hacks/invalid_binary_limit.rb', line 5 def binary(*args) = args. .delete(:limit) column_names = args column_names.each { |name| column(name, 'binary', ) } end |
#original_binary ⇒ Object
4 |
# File 'lib/taps/adapter_hacks/invalid_binary_limit.rb', line 4 alias_method :original_binary, :binary |
#original_text ⇒ Object
4 |
# File 'lib/taps/adapter_hacks/invalid_text_limit.rb', line 4 alias_method :original_text, :text |
#text(*args) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/taps/adapter_hacks/invalid_text_limit.rb', line 5 def text(*args) = args. .delete(:limit) column_names = args column_names.each { |name| column(name, 'text', ) } end |