Permalink
Commits on Sep 1, 2017
  1. Fix bypassing uniqueness validators

    vmaxv committed Sep 1, 2017
    When `Validator` is iterating over a callback chain and skips unique
    validations, it shifts the index whenever it deletes such item from the
    collection. If there are several successive uniqueness validators, it
    omits the one following the deleted one in the chain. That prevents
    from inserting data in such model when running with `:validate` option.
    
    Do not mutate the target chain inside the enumerator and iterate over a
    copy instead.
    
    Relates to #301.
    Follow-up for #410.
Commits on Aug 26, 2017
  1. Allow RETURNING to be specified for PostgreSQL (#433)

    tjwp authored and jkowens committed Aug 26, 2017
    * Allow returning to be specified for PostgreSQL
    
    * Set attributes from returning on model objects
Commits on Jul 20, 2017
  1. Merge pull request #441 from jkowens/releases/v0.19.1

    jkowens committed Jul 20, 2017
    Release v0.19.1
  2. Bumping version to 0.19.1

    jkowens committed Jul 20, 2017
  3. Update changelog for v0.19.1

    jkowens committed Jul 20, 2017
  4. Merge pull request #440 from keeguon/master

    jkowens committed Jul 20, 2017
    Fixed concat with 'primary_key'.
Commits on Jul 18, 2017
  1. Merge pull request #439 from jkowens/fix-437

    jkowens committed Jul 18, 2017
    Raise error when value set byte size exceeds max allowed
Commits on Jul 17, 2017
Commits on Jun 29, 2017
  1. Merge pull request #434 from salsify/salsify/assign-and-clean

    jkowens committed Jun 29, 2017
    Mark clean after assigning attributes
  2. Mark clean after assigning attributes

    Tim Perkins
    Tim Perkins committed Jun 29, 2017
Commits on Jun 13, 2017
  1. Merge pull request #429 from jkowens/releases/v0.19.0

    jkowens committed Jun 13, 2017
    Release v0.19.0
  2. Bumping version to 0.19.0

    jkowens committed Jun 13, 2017
Commits on Jun 12, 2017
  1. Merge pull request #428 from jkowens/master

    jkowens committed Jun 12, 2017
    Use read_attribute for columns with default value
Commits on Jun 6, 2017
  1. Cleanup variable name

    jkowens committed Jun 6, 2017
  2. Merge pull request #425 from jkowens/master

    jkowens committed Jun 6, 2017
    Fix issue importing serialized attributes from saved models
Commits on May 20, 2017
  1. [#421] PostgreSQL, WHERE condition to in DO UPDATE SET command (#423)

    Saidbek authored and jkowens committed May 20, 2017
    [#421] PostgreSQL, added WHERE condition to conflict_action in DO UPDATE SET command
Commits on May 10, 2017
  1. Merge pull request #418 from jkowens/releases/v0.18.3

    jkowens committed May 10, 2017
    Release v0.18.3
  2. Bumping version to 0.18.3

    jkowens committed May 10, 2017
  3. Update changelog for v0.18.3

    jkowens committed May 10, 2017
  4. Merge pull request #417 from jkowens/fix-415

    jkowens committed May 10, 2017
    Refactor #set_attributes_and_mark_clean
  5. Merge pull request #416 from jkowens/fix-415

    jkowens committed May 10, 2017
    Update new_record? attribute when using :on_duplicate_key_ignore
Commits on May 5, 2017
  1. Merge pull request #413 from jkowens/releases/v0.18.2

    jkowens committed May 5, 2017
    Release v0.18.2
  2. Bumping version to 0.18.2

    jkowens committed May 5, 2017
  3. Update changelog for v0.18.2

    jkowens committed May 5, 2017
Commits on May 4, 2017
  1. Merge pull request #412 from jkowens/fix-411

    jkowens committed May 4, 2017
    Prevent setting IDs when importing with on_duplicate_key_ignore
  2. Prevent setting IDs when importing with on_duplicate_key_ignore

    jkowens committed May 4, 2017
    When using :on_duplicate_key_ignore, Postgres only returns IDs
    for inserted records. This means that there is no way to know
    which models the returned IDs belong to so they cannot be set.
  3. Respect "validate" callbacks (#410)

    afn authored and jkowens committed May 4, 2017
    Change how uniqueness validators are filtered out
    
    The normal validation flow is:
    
    before_validation
      before_validate
        validate
      after_validate
    after_validation
    
    The "validate" step includes both validators and custom validation
    methods defined by calling "validate" on the class. Thus, to ensure that
    we run custom validation methods but do not check uniqueness
    constraints, we need to filter out those constraints from the "validate"
    callback chain.
  4. Add postgis package

    jkowens committed May 4, 2017