1. 08 3月, 2013 1 次提交
  2. 25 2月, 2013 1 次提交
  3. 21 2月, 2013 3 次提交
    • Y
      also rename indexes when a table or column is renamed · 39eef1a5
      Yves Senn 提交于
      When a table or a column is renamed related indexes kept their name. This will lead to confusing names. This patch renames related indexes when a column or a table is renamed. Only indexes with names generated by rails will be renamed. Indexes with custom names will not be renamed.
      39eef1a5
    • Y
      reserve less chars for internal sqlite3 operations · 72ca2d7f
      Yves Senn 提交于
      72ca2d7f
    • Y
      reserve index name chars for internal rails operations · cca43528
      Yves Senn 提交于
      Some adapter (SQLite3) need to perform renaming operations to support
      the rails DDL. These rename prefixes operate with prefixes. When an
      index name already uses up the full space provieded by
      `index_name_length` these internal operations will fail. This patch
      introduces `allowed_index_name_length` which respects the amount of
      characters used for internal operations. It will always be <=
      `index_name_length` and every adapter can define how many characters
      need to be reserved.
      cca43528
  4. 16 2月, 2013 2 次提交
  5. 14 2月, 2013 1 次提交
  6. 12 2月, 2013 1 次提交
  7. 27 1月, 2013 1 次提交
    • D
      Fix cases where delete_records on a has_many association caused errors · 0a71c7b8
      Derek Kraan 提交于
      because of an ambiguous column name. This happened if the association
      model had a default scope that referenced a third table, and the third
      table also referenced the original table (with an identical
      foreign_key).
      
      Mysql requires that ambiguous columns are deambiguated by using the full
      table.column syntax. Postgresql and Sqlite use a different syntax for
      updates altogether (and don't tolerate table.name syntax), so the fix
      requires always including the full table.column and discarding it later
      for Sqlite and Postgresql.
      0a71c7b8
  8. 22 12月, 2012 1 次提交
  9. 19 12月, 2012 1 次提交
  10. 29 10月, 2012 2 次提交
  11. 29 9月, 2012 1 次提交
    • J
      Support for partial inserts. · 144e8691
      Jon Leighton 提交于
      When inserting new records, only the fields which have been changed
      from the defaults will actually be included in the INSERT statement.
      The other fields will be populated by the database.
      
      This is more efficient, and also means that it will be safe to
      remove database columns without getting subsequent errors in running
      app processes (so long as the code in those processes doesn't
      contain any references to the removed column).
      144e8691
  12. 15 9月, 2012 2 次提交
  13. 18 8月, 2012 1 次提交
  14. 25 6月, 2012 1 次提交
    • P
      Revert "Merge pull request #6344" · ceb68d18
      Piotr Sarnacki 提交于
      This commit needs to be reverted because it introduces difficulties when
      using sqlite3 in development and other databases in production. This
      happens because when you create time column in sqlite3, it's dumped as
      datetime in schema.rb file.
      
      This reverts commit 57d534ee, reversing
      changes made to 20f049fb.
      
      Conflicts:
      
      	activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb
      ceb68d18
  15. 24 5月, 2012 1 次提交
    • V
      Revert "Remove blank trailing comments" · 1ad0b378
      Vijay Dev 提交于
      This reverts commit fa6d921e.
      
      Reason: Not a fan of such massive changes. We usually close such changes
      if made to Rails master as a pull request. Following the same principle
      here and reverting.
      
      [ci skip]
      1ad0b378
  16. 20 5月, 2012 1 次提交
    • H
      Remove blank trailing comments · fa6d921e
      Henrik Hodne 提交于
      For future reference, this is the regex I used: ^\s*#\s*\n(?!\s*#). Replace
      with the first match, and voilà! Note that the regex matches a little bit too
      much, so you probably want to `git add -i .` and go through every single diff
      to check if it actually should be changed.
      fa6d921e
  17. 19 5月, 2012 1 次提交
  18. 17 5月, 2012 1 次提交
  19. 16 5月, 2012 4 次提交
  20. 15 5月, 2012 1 次提交
  21. 02 5月, 2012 1 次提交
  22. 27 4月, 2012 5 次提交
  23. 26 4月, 2012 1 次提交
  24. 29 12月, 2011 1 次提交
  25. 24 12月, 2011 1 次提交
  26. 08 12月, 2011 1 次提交
  27. 04 12月, 2011 1 次提交
  28. 11 8月, 2011 1 次提交