1. 20 9月, 2015 1 次提交
  2. 11 6月, 2015 1 次提交
  3. 04 5月, 2015 1 次提交
  4. 04 12月, 2014 1 次提交
    • N
      Failure to rollback t.timestamps when within a change_table migration · b64fb302
      noam 提交于
      When running the following migration:
      
          change_table(:table_name) { |t| t/timestamps }
      
      The following error was produced:
      
          wrong number of arguments (2 for 1) .... /connection_adapters/abstract/schema_statements.rb:851:in `remove_timestamps'
      
      This is due to `arguments` containing an empty hash as its second
      argument.
      b64fb302
  5. 20 11月, 2014 1 次提交
    • Y
      synchronize code and docs for `timestamps` and `add_timestamps`. · d56be864
      Yves Senn 提交于
      This makes the following changes:
        * warn if `:null` is not passed to `add_timestamps`
        * `timestamps` method docs link to `add_timestamps` docs
        * explain where additional options go
        * adjust examples to include `null: false` (to prevent deprecation warnings)
      d56be864
  6. 13 8月, 2014 1 次提交
    • S
      Change the default `null` value for timestamps · ea3ba345
      Sean Griffin 提交于
      As per discussion, this changes the model generators to specify
      `null: false` for timestamp columns. A warning is now emitted if
      `timestamps` is called without a `null` option specified, so we can
      safely change the behavior when no option is specified in Rails 5.
      ea3ba345
  7. 03 4月, 2014 1 次提交
  8. 27 3月, 2014 2 次提交
  9. 26 3月, 2014 2 次提交
  10. 15 3月, 2014 1 次提交
  11. 03 5月, 2013 1 次提交
    • J
      Fix broken mysql test · 66982772
      Jon Leighton 提交于
      test_mysql_integer_not_null_defaults in test/cases/defaults_test.rb was
      failing. This test relies on the connection being in strict mode. By
      default a new connection is not in strict mode, but Active Record
      automatically places it in strict mode.
      
      ActiveSchemaTest overwrites the connection's #execute method in order to
      prevent SQL statements from actually being executed. One of the
      operations which is performed in ActiveSchema test is a #recreate_database.
      
      Since 2088bf27, recreate_database on
      mysql or mysql2 will trigger a reconnect.
      
      Due to the implementation of the hacking of #execute in
      ActiveSchemaTest, this reconnect would take place, but the connection
      would *not* be placed in strict mode because #execute had been
      overridden to prevent SQL queries hitting the database.
      
      Therefore, after ActiveSchemaTest, the connection would no longer be in
      strict mode, causing test_mysql_integer_not_null_defaults to fail.
      
      I don't think that the way that ActiveSchemaTest is implemented is
      particularly nice or clean, but I have taken steps to make its hacks
      more isolated - it now create a separate connection object which is
      thrown away after the test, and the hacks are applied on the singleton
      class of this object.
      66982772
  12. 28 3月, 2013 1 次提交
  13. 26 3月, 2013 2 次提交
  14. 24 3月, 2013 1 次提交
  15. 20 3月, 2013 1 次提交
  16. 02 1月, 2013 1 次提交
  17. 29 8月, 2011 1 次提交
  18. 07 6月, 2011 1 次提交
  19. 05 6月, 2011 1 次提交
    • J
      Refactor Active Record test connection setup. Please see the... · 253bb6b9
      Jon Leighton 提交于
      Refactor Active Record test connection setup. Please see the RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases.
      253bb6b9
  20. 02 8月, 2010 1 次提交
  21. 19 7月, 2010 1 次提交
  22. 26 6月, 2010 1 次提交
  23. 09 6月, 2010 1 次提交
  24. 19 5月, 2010 1 次提交
  25. 09 5月, 2010 1 次提交
  26. 08 5月, 2010 2 次提交
  27. 04 10月, 2008 1 次提交
  28. 22 5月, 2008 1 次提交
  29. 13 3月, 2008 1 次提交
  30. 22 1月, 2008 1 次提交
  31. 18 1月, 2008 1 次提交
  32. 05 1月, 2008 1 次提交
  33. 22 12月, 2007 1 次提交
  34. 21 10月, 2007 1 次提交
  35. 16 10月, 2007 1 次提交
  36. 26 5月, 2007 1 次提交