1. 28 10月, 2015 1 次提交
  2. 24 9月, 2015 1 次提交
    • B
      Fix out of sync comment · ca4f1e04
      Brandon Conway 提交于
      It appears that as of version 4 the `db:test:prepare` task no longer depends on the `abort_if_pending_migrations` task, which leaves this comment out of sync.
      ca4f1e04
  3. 23 9月, 2015 1 次提交
    • Y
      introduce `conn.data_source_exists?` and `conn.data_sources`. · 152b85f0
      Yves Senn 提交于
      These new methods are used from the Active Record model layer to
      determine which relations are viable to back a model. These new methods
      allow us to change `conn.tables` in the future to only return tables and
      no views. Same for `conn.table_exists?`.
      
      The goal is to provide the following introspection methods on the
      connection:
      
      * `tables`
      * `table_exists?`
      * `views`
      * `view_exists?`
      * `data_sources` (views + tables)
      * `data_source_exists?` (views + tables)
      152b85f0
  4. 07 9月, 2015 2 次提交
  5. 30 6月, 2015 2 次提交
  6. 17 6月, 2015 1 次提交
  7. 16 6月, 2015 1 次提交
    • A
      Small refactor on db:reset · 68f6d534
      Arthur Neves 提交于
      db:reset should not prematurely load the environment, so, for instance,
      if there is any initializer that touches th DB, it will not touch that
      before droping it.
      
      Also this makes the code simpler.
      
      This changed was made back in 15fb4302
      , not sure why. But I am pretty much sure we should do it like this, as
      drop and setup should load its dependencies tasks if necessary.
      68f6d534
  8. 05 5月, 2015 1 次提交
  9. 27 4月, 2015 1 次提交
  10. 12 2月, 2015 1 次提交
  11. 08 1月, 2015 1 次提交
  12. 23 12月, 2014 1 次提交
  13. 05 12月, 2014 1 次提交
    • C
      Remove environment dependency for db:schema:load · 382a70c8
      Caleb Thompson 提交于
      All of the behavior :environment was giving (that db:schema:load needed)
      was provided as well with :load_config.
      
      This will address an issue introduced in
      https://github.com/rails/rails/pull/15394. The fact that db:schema:load
      now drops and creates the database causes the Octopus gem to have [an
      issue](https://github.com/tchandy/octopus/issues/273) during the drop
      step for the test database (which wasn't happening in db:schema:load
      before). The error looks like:
      
          ActiveRecord::StatementInvalid: PG::ObjectInUse: ERROR:  cannot drop the currently open database
          : DROP DATABASE IF EXISTS "app_test"
      
      Because of the timing, this issue is present in master, 4-2-*, and
      4.1.8.
      
      A note to forlorn developers who might see this: "Additionally" in a
      commit message means you should have a separate commit, with a separate
      justification for changes. Small commits with big messages are your
      friends.
      382a70c8
  14. 29 11月, 2014 1 次提交
  15. 26 11月, 2014 1 次提交
    • Y
      bring back `db:test:prepare`. · 5c449553
      Yves Senn 提交于
      This reverts deprecations added in #13528.
      The task is brought back for two reasons:
        1. Give plugins a way to hook into the test database initialization process
        2. Give the user a way to force a test database synchronization
      
      While `test:prepare` is still a dependency of every test task, `db:test:prepare`
      no longer hooks into it. This means that `test:prepare` runs before the schema
      is synchronized. Plugins, which insert data can now hook into `db:test:prepare`.
      
      The automatic schema maintenance can't detect when a migration is rolled-back,
      modified and reapplied. In this case the user has to fall back to `db:test:prepare`
      to force the synchronization to happen.
      5c449553
  16. 03 11月, 2014 2 次提交
  17. 29 9月, 2014 1 次提交
  18. 06 8月, 2014 1 次提交
    • Y
      schema rake tasks are specific about the configuration to act on. · f15cef67
      Yves Senn 提交于
      The rake tasks and the `DatabaseTakss` adapter classes used to
      assume a configuration at some places. This forced the rake
      tasks to establish a specific connection before calling into
      `load_schema`.
      
      After #15394 this started to cause issues because it could
      `purge` the wrong database before loading the schema.
      f15cef67
  19. 01 8月, 2014 1 次提交
  20. 28 6月, 2014 2 次提交
  21. 27 6月, 2014 10 次提交
  22. 17 6月, 2014 1 次提交
  23. 06 6月, 2014 1 次提交
  24. 27 5月, 2014 1 次提交
  25. 08 5月, 2014 1 次提交
  26. 03 5月, 2014 1 次提交
  27. 29 3月, 2014 1 次提交