Extracts schema from a model class
Constants
TYPE_MAP = {"
Int64" => :bigint, "
Int32" => :integer, "
Int16" => :smallint, "
String" => :string, "
Bool" => :boolean, "
Float64" => :float, "
Float32" => :float, "
Time" => :timestamp, "
JSON::Any" => :jsonb, "
Bytes" => :binary, "
UUID" => :uuid}
Map Crystal types to SQL symbols used in migrations
Class methods
Get the set of polymorphic FK column names for a model
Source