topaz v0.2.2 Release Notes

Release Date: 2016-12-26 // almost 5 years ago
  • ๐Ÿฑ Suppoort Crystal version 0.20.3 ๐ŸŽ‰
    ๐Ÿ‘€ Nullable column is accepted.(See below sample)
    Support to_json and from_json(#json is deprecated)
    Topaz::Log.show_query is now Topaz::Db.show_query

    class NullableModel < Topaz::Model
      columns(
        name: String,
        nullable: {type: String, nullable: true},
        not_nullable: {type: String, nullable: false},
      )
    end
    
    NullableModel.create("sample", nil, "not nullable")