• S
    Delegate `Column#type` to the injected type object · 0b682e4b
    Sean Griffin 提交于
    The decision to wrap type registrations in a proc was made for two
    reasons.
    
    1. Some cases need to make an additional decision based on the type
      (e.g. a `Decimal` with a 0 scale)
    2. Aliased types are automatically updated if they type they point to is
      updated later. If a user or another adapter decides to change the
      object used for `decimal` columns, `numeric`, and `number` will
      automatically point to the new type, without having to track what
      types are aliased explicitly.
    
    Everything else here should be pretty straightforward. PostgreSQL ranges
    had to change slightly, since the `simplified_type` method is gone.
    0b682e4b
value.rb 142 字节