Module: ActiveRecord::PostgresEnum::SchemaStatements

Defined in:
lib/active_record/postgres_enum/schema_statements.rb

Instance Method Summary collapse

Instance Method Details

#type_to_sql(type, enum_type: nil, **kwargs) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/active_record/postgres_enum/schema_statements.rb', line 6

def type_to_sql(type, enum_type: nil, **kwargs)
  if type.to_s == "enum"
    enum_type
  else
    super
  end
end