1. 01 12月, 2014 1 次提交
  2. 28 11月, 2014 1 次提交
  3. 27 11月, 2014 1 次提交
  4. 26 11月, 2014 7 次提交
    • R
    • R
      Add #record attribute to RecordNotFound and RecordDestroyed exceptions. · 3e30c5d4
      Recursive Madman 提交于
      This allows these exceptions to be handled generically in conjunction with RecordInvalid.
      3e30c5d4
    • D
      Generators add foreign keys on references · 323334a7
      Derek Prior 提交于
      If you run a generator such as:
      
      ```
      rails generate model accounts supplier:references
      ```
      
      The resulting migration will now add the corresponding foreign key
      constraint unless the reference was specified to be polymorphic.
      323334a7
    • S
      Move PG float quoting to the correct location · d74e716b
      Sean Griffin 提交于
      Not sure how we missed this case when we moved everything else to the
      `_quote` method.
      d74e716b
    • S
      Setting an association replaces records with the same id in memory · dd986814
      Sean Griffin 提交于
      The records weren't being replaced since equality in Active Record is
      defined in terms of `id` only. It is reasonable to expect that the
      references would be replaced in memory, even if no queries are actually
      executed. This change did not appear to affect any other parts of the
      code base. I chose not to execute callbacks since we're not actually
      modifying the association in a way that will be persisted.
      
      Fixes #17730
      dd986814
    • Y
      bring back `db:test:prepare`. · 5c449553
      Yves Senn 提交于
      This reverts deprecations added in #13528.
      The task is brought back for two reasons:
        1. Give plugins a way to hook into the test database initialization process
        2. Give the user a way to force a test database synchronization
      
      While `test:prepare` is still a dependency of every test task, `db:test:prepare`
      no longer hooks into it. This means that `test:prepare` runs before the schema
      is synchronized. Plugins, which insert data can now hook into `db:test:prepare`.
      
      The automatic schema maintenance can't detect when a migration is rolled-back,
      modified and reapplied. In this case the user has to fall back to `db:test:prepare`
      to force the synchronization to happen.
      5c449553
    • Y
      do not trigger AR lazy load hook before initializers ran. · 9e9793b4
      Yves Senn 提交于
      [Rafael Mendonça França & Yves Senn]
      
      This require caused the `active_record.set_configs` initializer to
      run immediately, before `config/initializers`. This means that setting any
      configuration on `Rails.application.config.active_record` inside of
      an initializer had no effects when rails was loaded through `rake`.
      
      Introduced by #6518
      
      /cc @rafaelfranca
      9e9793b4
  5. 25 11月, 2014 6 次提交
  6. 24 11月, 2014 2 次提交
  7. 23 11月, 2014 3 次提交
  8. 22 11月, 2014 1 次提交
  9. 21 11月, 2014 5 次提交
  10. 20 11月, 2014 6 次提交
  11. 19 11月, 2014 7 次提交