1. 08 12月, 2012 1 次提交
    • C
      Rollback where.like and where.not_like · 8d02afea
      Carlos Antonio da Silva 提交于
      The real win with these chain methods is where.not, that takes care of
      different scenarios in a graceful way, for instance when the given value
      is nil.
      
          where("author.id != ?", author_to_ignore.id)
          where.not("author.id", author_to_ignore.id)
      
      Both where.like and where.not_like compared to the SQL versions doesn't
      seem to give us that much:
      
          Post.where("title LIKE 'ruby on%'")
          Post.where.like(title: 'ruby on%'")
          Post.where("title NOT LIKE 'ruby on%'")
          Post.where.not_like(title: 'ruby on%'")
      
      Thus Rails is adding where.not, but not where.like/not_like and others.
      8d02afea
  2. 07 12月, 2012 3 次提交
  3. 05 12月, 2012 2 次提交
  4. 04 12月, 2012 1 次提交
  5. 03 12月, 2012 1 次提交
  6. 02 12月, 2012 1 次提交
    • J
      Add metadata to schema_migrations · 0a5afa22
      Josh Susser 提交于
      migrated_at: timestamp when migration run
      fingerprint: md5 hash of migration source
      name: filename without version or extension
      0a5afa22
  7. 30 11月, 2012 1 次提交
  8. 29 11月, 2012 3 次提交
  9. 28 11月, 2012 1 次提交
  10. 25 11月, 2012 1 次提交
  11. 24 11月, 2012 1 次提交
  12. 22 11月, 2012 3 次提交
  13. 21 11月, 2012 1 次提交
  14. 20 11月, 2012 1 次提交
  15. 19 11月, 2012 1 次提交
  16. 17 11月, 2012 2 次提交
  17. 12 11月, 2012 2 次提交
  18. 10 11月, 2012 1 次提交
  19. 05 11月, 2012 1 次提交
  20. 03 11月, 2012 2 次提交
  21. 31 10月, 2012 3 次提交
  22. 29 10月, 2012 4 次提交
  23. 28 10月, 2012 1 次提交
  24. 27 10月, 2012 1 次提交
  25. 26 10月, 2012 1 次提交
    • J
      Remove ActiveRecord::Model · 9e4c41c9
      Jon Leighton 提交于
      In the end I think the pain of implementing this seamlessly was not
      worth the gain provided.
      
      The intention was that it would allow plain ruby objects that might not
      live in your main application to be subclassed and have persistence
      mixed in. But I've decided that the benefit of doing that is not worth
      the amount of complexity that the implementation introduced.
      9e4c41c9