Class: ActiveRecord::ConnectionAdapters::SQLite3Adapter

Inherits:
Object
  • Object
show all
Defined in:
lib/connection_adapters/sqlite3.rb

Instance Method Summary collapse

Instance Method Details

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



7
8
9
10
11
12
# File 'lib/connection_adapters/sqlite3.rb', line 7

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: limit, **args)
end