1. 06 8月, 2014 1 次提交
  2. 01 8月, 2014 1 次提交
  3. 28 7月, 2014 1 次提交
  4. 02 7月, 2014 1 次提交
  5. 27 6月, 2014 1 次提交
  6. 17 6月, 2014 1 次提交
  7. 14 6月, 2014 1 次提交
  8. 12 6月, 2014 1 次提交
  9. 15 4月, 2014 1 次提交
  10. 08 1月, 2014 1 次提交
  11. 02 1月, 2014 1 次提交
    • J
      Automatically maintain test database schema · ff7ab3bc
      Jon Leighton 提交于
      * Move check from generated helper to test_help.rb, so that all
        applications can benefit
      * Rather than just raising when the test schema has pending migrations,
        try to load in the schema and only raise if there are pending
        migrations afterwards
      * Opt out of the check by setting
        config.active_record.maintain_test_schema = false
      * Deprecate db:test:* tasks. The test helper is now fully responsible
        for maintaining the test schema, so we don't need rake tasks for this.
        This is also a speed improvement since we're no longer reloading the
        test database on every call to "rake test".
      ff7ab3bc
  12. 26 12月, 2013 1 次提交
  13. 24 12月, 2013 1 次提交
    • J
      Guarantee the connection resolver handles string values · c390e608
      José Valim 提交于
      This commit also cleans up the rake tasks that were checking
      for DATABASE_URL in different places.
      
      In fact, it would be nice to deprecate DATABASE_URL usage in the long
      term, considering the direction we are moving of allowing those in .yml
      files.
      c390e608
  14. 19 11月, 2013 1 次提交
  15. 11 11月, 2013 1 次提交
    • J
      Explicitly exit with status "1" for create and drop failures · 22f80ae5
      Jay Hayes 提交于
      * A non-zero exit status allows subsequent shell commands to be chained
        together such as: `rake db:reset test:prepare && rspec && cap deploy`
        (if you're feeling brave :)
      * Any exceptions raised during the `create` and `drop` tasks are caught
        in order to print a "pretty" message to the user. Unfortunately doing
        so prevents rake from aborting with a non-zero exit status to the shell.
      * Therefore we re-raise the exceptions after the "pretty" message and
        re-catch them in the task.
      * From the task we explicitly exit with a non-zero status. This method
        was chosen (rather than just letting rake fail from the exception) so
        that the backtrace is suppressed and the output to stderr is
        unchanged.
      * Update activerecord CHANGELOG
      22f80ae5
  16. 01 11月, 2013 1 次提交
  17. 08 8月, 2013 1 次提交
  18. 05 6月, 2013 3 次提交
  19. 01 5月, 2013 1 次提交
  20. 25 4月, 2013 5 次提交
  21. 24 4月, 2013 1 次提交
  22. 02 4月, 2013 3 次提交
  23. 31 1月, 2013 1 次提交
  24. 12 1月, 2013 1 次提交
    • C
      Bring back "database already exists" messages when running rake tasks · 9b636dcf
      Carlos Antonio da Silva 提交于
      When running tasks such "rake db:setup", instead of showing messages
      like "db_development already exists", it was showing a big stack trace
      and a message "Couldn't create database for ..." with the configuration
      options, a very confusing message with a big trace.
      
      This brings back the functionality present in 3-2, showing the same
      message.
      9b636dcf
  25. 12 9月, 2012 1 次提交
    • G
      fixed support for DATABASE_URL for rake db tasks · 148c50b4
      Grace Liu 提交于
      - added tests to confirm establish_connection uses DATABASE_URL and
        Rails.env correctly even when no arguments are passed in.
      - updated rake db tasks to support DATABASE_URL, and added tests to
        confirm correct behavior for these rake tasks.  (Removed
        establish_connection call from some tasks since in those cases
        the :environment task already made sure the function would be called)
      - updated Resolver so that when it resolves the database url, it
        removes hash values with empty strings from the config spec (e.g.
        to support connection to postgresql when no username is specified).
      148c50b4
  26. 06 8月, 2012 1 次提交
  27. 30 6月, 2012 1 次提交
  28. 24 6月, 2012 1 次提交
  29. 21 6月, 2012 1 次提交
  30. 20 6月, 2012 1 次提交
  31. 19 6月, 2012 2 次提交