Exception: SingleTableGlobalize3::ActiveRecord::Exceptions::BadFieldType

Inherits:
MigrationError
  • Object
show all
Defined in:
lib/single_table_globalize3/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/single_table_globalize3/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