1. 15 5月, 2014 1 次提交
    • N
      Make filter_binds filter out symbols that are equal to strings · 1d316ac1
      Nat Budin 提交于
      ActiveRecord::Relation::Merger's filter_binds method does not filter out bind
      variables when one of the attribute nodes has a string name, but the other has
      a symbol name, even when those names are actually equal.
      
      This can result in there being more bind variables than placeholders in the
      generated SQL.  This is particularly an issue for PostgreSQL, where this is
      treated as an error.
      
      This patch changes the filter_binds method to make it convert both attribute
      names to strings before comparing.
      1d316ac1
  2. 12 5月, 2014 4 次提交
  3. 10 5月, 2014 2 次提交
  4. 08 5月, 2014 3 次提交
  5. 06 5月, 2014 2 次提交
  6. 05 5月, 2014 1 次提交
  7. 03 5月, 2014 1 次提交
  8. 02 5月, 2014 1 次提交
  9. 01 5月, 2014 3 次提交
  10. 26 4月, 2014 1 次提交
    • K
      Fix custom join_table name on habtm reflections · 18fa87b8
      Kassio Borges 提交于
      When used a custom join_table name on a habtm, rails was not saving it
      on Reflections. This causes a problem when rails loads fixtures, because
      it uses the reflections to set database with fixtures.
      18fa87b8
  11. 25 4月, 2014 2 次提交
  12. 24 4月, 2014 1 次提交
  13. 23 4月, 2014 1 次提交
  14. 19 4月, 2014 1 次提交
  15. 18 4月, 2014 1 次提交
  16. 16 4月, 2014 3 次提交
  17. 13 4月, 2014 1 次提交
  18. 12 4月, 2014 2 次提交
  19. 11 4月, 2014 3 次提交
  20. 07 4月, 2014 1 次提交
  21. 05 4月, 2014 1 次提交
  22. 04 4月, 2014 2 次提交
    • Y
      PostgreSQL and SQLite, remove varchar limit. [Vladimir Sazhin & Toms Mikoss & Yves Senn] · f4226c3a
      Yves Senn 提交于
      There is no reason for the PG adapter to have a default limit of 255 on :string
      columns. See this snippet from the PG docs:
      
          Tip: There is no performance difference among these three types, apart
          from increased storage space when using the blank-padded type, and a
          few extra CPU cycles to check the length when storing into a
          length-constrained column. While character(n) has performance
          advantages in some other database systems, there is no such advantage
          in PostgreSQL; in fact character(n) is usually the slowest of the
          three because of its additional storage costs. In most situations text
          or character varying should be used instead.
      f4226c3a
    • A
      Block a few default Class methods as scope name. · 815c9dea
      Arthur Neves 提交于
      Add tests to make sure scopes cannot be create with names such as:
      private, protected, public.
      Make sure enum values don't collide with those methods too.
      815c9dea
  23. 03 4月, 2014 2 次提交