Exception: Globalize::ActiveRecord::Exceptions::BadFieldType

Inherits:
MigrationError
  • Object
show all
Defined in:
lib/globalize/active_record/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, type) ⇒ BadFieldType

Returns a new instance of BadFieldType.


13
14
15
# File 'lib/globalize/active_record/exceptions.rb', line 13

def initialize(name, type)
  super("Bad field type for field #{name.inspect} (#{type.inspect}), should be :string or :text")
end