1. 18 1月, 2016 1 次提交
    • J
      Updated the guides for having a distinct has_many through at the database level · f72fe2d5
      James Doyley 提交于
      The current example
      
          add_index :person_articles, :article, unique: true
      
      Does not work, the `:article` column does not exist as it will be
      a join table (based on the prior example) so should use :article_id
      
      The documentation seems to suggest that it will allow an article to
      be added only once to a person via the join table, what actually
      occurs is that it only allows the article to be added to one person,
      at which point it should be a `belongs_to` association.
      
      Also changed the new example to use readings based on the prior example
      f72fe2d5
  2. 24 11月, 2015 31 次提交
  3. 23 11月, 2015 3 次提交
    • S
      Merge pull request #22380 from wjessop/fix_race_in_aj_integration_tests · 9e486905
      Sean Griffin 提交于
      Fix race condition testing for job execution order
      9e486905
    • W
      Fix race condition testing for job execution order · 171e788c
      Will Jessop 提交于
      On most filesystems file ctime is limited to 1 second granularity, which means that on
      faster computers multiple simple jobs (for instance dummy TestJob) can finish within the
      same second.
      
      The execution order test in ActiveJob integration tests relies on multiple TestJobs
      writing files then comparing the ctime. As a result integration tests would sometimes
      fail as the ctime of the files written by these TestJobs could have coincidental ctimes
      making the comparison for job order fail.
      
      This commit adds a far more precise execution time (to the extent that the Ruby Time
      class allows) to the file created by TestJob, and updates the execution order assertion
      to use it, removing the race condition.
      171e788c
    • Y
      [ci skip] Add `Translating Rails Guides` to contributing_to_ruby_on_rails · e4e6c9bb
      yui-knk 提交于
      Docrails is private now (6cb1b672),
      anyone who does not have access right to docrails can't read
      "Translating Rails Guides" in wiki of docrails.
      To prevent someone from giving up to translate, publish them on Rails Guide.
      e4e6c9bb
  4. 22 11月, 2015 5 次提交