Skip to content

v0.3

Compare
Choose a tag to compare
@anykeyh anykeyh released this 09 Aug 09:03
· 392 commits to master since this release

Features

  • Add support to pg Enum
  • Add support for UUID primary key, with uuid autogeneration
  • Add support for BCrypt fields, like passwords
  • Finalization of CLI !
  • Add Clear.seed(&block)
    Clear.seed goes in pair with bin/clear migrate seed which will call the seed blocks.
  • Add possibility to use has_many through without having to declare the model doing the relation
    For example, if A belongs to B, B belongs to C, then A has_many C through B. You can
    perform this now without declaring any class for B; see the guide about relations for
    more informations.
  • Add error messages so cool you want your code to crash 😉

Bug fixes

  • Fix #23 bug with has_many through: and select
  • Add support for DISTINCT ON feature.
  • Array(String), Array(Int64) columns type are working now works

Breaking changes

  • Model#save on read only model do not throw exception anymore but return false (save! still throw error)
  • with_serial_pkey use Int32 (type :serial) and Int64 (type :longserial) pkey instead of UInt32 and UInt64. This would prevent issue with default belongs_to behavior and simplify static number assignation.