Class: ActiveRecord::ConnectionAdapters::SQLite3Adapter

Inherits:
SQLiteAdapter
  • Object
show all
Defined in:
lib/activerecord_enum.rb

Instance Method Summary collapse

Instance Method Details

#type_to_sql_with_enum(type, limit = nil, *args) ⇒ Object Also known as: type_to_sql



39
40
41
42
43
44
# File 'lib/activerecord_enum.rb', line 39

def type_to_sql_with_enum type, limit=nil, *args
  if type.to_s == "enum" || type.to_s == "set"
    type, limit = :string, nil
  end
  type_to_sql_without_enum type, limit, *args
end