0.4.2
SqlGenerator
- rename
#trancate
to#truncate
Migration
-
rename
TableBuilder::DropInde
toTableBuilder::DropIndex
-
remove printing out redundand execution information during db drop and create
-
remove
Migration::Base::TABLE_NAME
constant -
allow to pass
QueryBuilder::Query
as source to theCreateMaterializedView
(postgres only)
Model
-
move
Base#build
method witout arguments toMapping
module under the%mapping
-
added
validates_presence_of
validation macros -
fixed callback invokation from parent classes
-
add
allow_blank
key tovalidates_inclusion
,validates_exclusion
,validates_format
-
add
ValidationMessages
module which includes methods generating validation error messages -
add
Primary32
andPrimary64
shortcuts forInt32
andInt64
primary field declarations for model and view -
allow use nil usions instead of
null: true
named tuple option
QueryBuilder
-
#count
method is moved fromExecutables
module to theAggregations
one -
changed method signature of
#find_in_batches
-
add
#find_each
- works same way as#find_in_batches
but yields each record instead of array -
add
#ordered?
method toOrdering
module -
switch
Criteria#hash
to useobject_id
as seed -
add
Query#eql?
-
add
Query#clone
and all related methods -
add
Query#except
- creates clone except given clauses -
make
IModelQuery
class as new superclass ofModelQuery(T)
; move all methods no depending onT
to the new class