Class: ActiveRecord::ConnectionAdapters::TableDefinition

Inherits:
Object
  • Object
show all
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)
	options = args.extract_options!
	options.delete(:limit)
	column_names = args
	column_names.each { |name| column(name, 'binary', options) }
end

#original_binaryObject



4
# File 'lib/taps/adapter_hacks/invalid_binary_limit.rb', line 4

alias_method :original_binary, :binary

#original_textObject



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)
	options = args.extract_options!
	options.delete(:limit)
	column_names = args
	column_names.each { |name| column(name, 'text', options) }
end