Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.04 KB

CHANGELOG.md

File metadata and controls

40 lines (26 loc) · 1.04 KB
  • Support RETURNING clause for MariaDB

    fatkodima, Nikolay Kondratyev

  • The SQLite3 adapter now implements the supports_deferrable_constraints? contract

    Allows foreign keys to be deferred by adding the :deferrable key to the foreign_key options.

    add_reference :person, :alias, foreign_key: { deferrable: :deferred }
    add_reference :alias, :person, foreign_key: { deferrable: :deferred }

    Stephen Margheim

  • Add set_constraints helper for PostgreSQL

    Post.create!(user_id: -1) # => ActiveRecord::InvalidForeignKey
    
    Post.transaction do
      Post.connection.set_constraints(:deferred)
      p = Post.create!(user_id: -1)
      u = User.create!
      p.user = u
      p.save!
    end

    Cody Cutrer

  • Include ActiveModel::API in ActiveRecord::Base

    Sean Doyle

  • Ensure #signed_id outputs url_safe strings.

    Jason Meller

Please check 7-1-stable for previous changes.