Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove `#among?` from Active Support | Prem Sichanugrist | 2011-04-13 | 1 | -1/+1 |
| | | | | | | After a long list of discussion about the performance problem from using varargs and the reason that we can't find a great pair for it, it would be best to remove support for it for now. It will come back if we can find a good pair for it. For now, Bon Voyage, `#among?`. | ||||
* | Change Object#either? to Object#among? -- thanks to @jamesarosen for the ↵ | David Heinemeier Hansson | 2011-04-12 | 1 | -1/+1 |
| | | | | suggestion! | ||||
* | Using Object#in? and Object#either? in various places | Prem Sichanugrist | 2011-04-11 | 1 | -1/+3 |
| | | | | There're a lot of places in Rails source code which make a lot of sense to switching to Object#in? or Object#either? instead of using [].include?. | ||||
* | fix db:fixtures:load with FIXTURES specified [#6061 state:resolved] | John Hawthorn | 2011-02-06 | 1 | -2/+2 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Improve regex in rake db:migrate status [#5940 state:resolved] | Kevin Skoglund | 2011-02-04 | 1 | -1/+1 |
| | | | | | | [#5940 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Adding postgresql template option when executing db:test:clone_structure | Katrina Owen | 2011-01-09 | 1 | -1/+1 |
| | | | | | | | | | | Specify the template to use in config/database.yml, e.g. test: adapter: postgresql template: template_postgis If no template is specified, postgresql defaults to template1 | ||||
* | Refactor db:load:config to automatically pick additional migrations if ↵ | Piotr Sarnacki | 2010-12-09 | 1 | -0/+6 |
| | | | | ENGINE_PATH is available | ||||
* | Rake tasks for managing database while development and testing of engines | Piotr Sarnacki | 2010-12-09 | 1 | -14/+14 |
| | | | | | | | | | | | | Some of the engines needs database. As engine needs to be run inside Rails application, migrations and other database operations are run from dummy application. To make that process simple I changed db tasks to look for migrations in both engine's and application's db/migrate directory. You can run all of the database tasks from test/dummy or directly from engine with prefix app, like: rake app:db:migrate rake app:db:migrate:redo | ||||
* | properly load database config in database rake tasks, to properly set ↵ | Piotr Sarnacki | 2010-12-09 | 1 | -7/+7 |
| | | | | migrations_paths | ||||
* | Allow to run migrations from more than one directory in rake tasks | Piotr Sarnacki | 2010-12-09 | 1 | -8/+8 |
| | |||||
* | Do not treat information about skipped migrations as WARNINGs but as a ↵ | Piotr Sarnacki | 2010-10-14 | 1 | -1/+1 |
| | | | | NOTEs, also puts to stdin | ||||
* | Updated DOCS for engines and added a couple TODOs. Also, commented internal ↵ | José Valim | 2010-10-11 | 1 | -1/+1 |
| | | | | railties rake tasks description. | ||||
* | Rename rake railties:copy_migrations to rake railties:install:migrations and ↵ | Piotr Sarnacki | 2010-10-09 | 1 | -23/+25 |
| | | | | fix it to work with new copying strategy | ||||
* | Provide a cleaner syntax for paths configuration that does not rely on ↵ | José Valim | 2010-10-06 | 1 | -3/+3 |
| | | | | method_missing. | ||||
* | Fix 'rake db:create' is ignore encoding when using postgres [#5717 ↵ | yalab | 2010-09-30 | 1 | -1/+1 |
| | | | | | | state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | db:structure:dump should list current Rails.env adapter in errors, not ↵ | Nic Benders | 2010-09-26 | 1 | -1/+1 |
| | | | | | | | | always the test adapter [#5710 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Fix warning message when db/schema.rb doesn't exist [#5625 state:resolved] | Brian Candler | 2010-09-24 | 1 | -1/+1 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Add helper for loading seed data for engine and application | Piotr Sarnacki | 2010-09-20 | 1 | -2/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Exception handling more readable | Thiago Pradi | 2010-09-19 | 1 | -4/+4 |
| | | | | | | [#5601 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Use railties:copy_migrations instead of db:copy_migrations | Piotr Sarnacki | 2010-09-06 | 1 | -1/+5 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | rake db:copy_migrations task, which copies railties migrations into ↵ | Piotr Sarnacki | 2010-09-03 | 1 | -0/+22 |
| | | | | application's db/migrate directory | ||||
* | Added Rails.application.config.paths.db.migrate to remove hardcoded ↵ | Piotr Sarnacki | 2010-09-03 | 1 | -6/+7 |
| | | | | db/migrate paths | ||||
* | Fix em_mysql2 error in rake db:create | Sam Aarons | 2010-08-27 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Catch mysql2 access denied errors in rake db:create [#5432 state:resolved] | Andrew White | 2010-08-25 | 1 | -2/+4 |
| | | | | Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | standarizes the use of the article "an" for "SQL" and "SQLite" | Xavier Noria | 2010-08-05 | 1 | -1/+1 |
| | |||||
* | Move runtime back to the Thread.current | José Valim | 2010-07-26 | 1 | -3/+2 |
| | |||||
* | Cache connection access. | José Valim | 2010-07-25 | 1 | -2/+3 |
| | |||||
* | Move runtime back to connection. | José Valim | 2010-07-25 | 1 | -2/+2 |
| | |||||
* | Revert the previous three commits. | José Valim | 2010-07-25 | 1 | -3/+2 |
| | | | | | | * AS::Notifications#instrument should not measure anything, it is not its responsibility; * Adding another argument to AS::Notifications#instrument API needs to be properly discussed; | ||||
* | look up connection once | Aaron Patterson | 2010-07-25 | 1 | -2/+3 |
| | |||||
* | use a hash to collect optional statistics about the instrumentation | Aaron Patterson | 2010-07-25 | 1 | -2/+2 |
| | |||||
* | Move runtime to log subscriber. | José Valim | 2010-07-25 | 1 | -2/+2 |
| | |||||
* | rake db:seed should check if the database have pending migrations [#5163 ↵ | Thiago Pradi | 2010-07-21 | 1 | -1/+1 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Avoid calls to Rails::Application since this is not the official API. | José Valim | 2010-07-01 | 1 | -1/+1 |
| | | | | Your application should *always* reference your application const (as Blog::Application) and Rails.application should be used just internally. | ||||
* | Support any mysql-like adapter | Jeremy Kemper | 2010-06-30 | 1 | -7/+7 |
| | |||||
* | Avoid "no such table" exception when schema migrations table does not exist | Akira Matsuda | 2010-06-27 | 1 | -0/+5 |
| | | | | | | [#4990 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Use ActiveRecord::Migrator.schema_migrations_table_name instead of ↵ | Akira Matsuda | 2010-06-27 | 1 | -1/+1 |
| | | | | | | hardcoding "schema_migrations" Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | rake db:migrate:status displays status of migrations [#4947 state:resolved] | Kevin Skoglund | 2010-06-28 | 1 | -0/+25 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing ↵ | José Valim | 2010-06-24 | 1 | -32/+0 |
| | | | | frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [#4816 state:resolved] | ||||
* | Cut down even further on rake -T noise | David Heinemeier Hansson | 2010-06-09 | 1 | -13/+13 |
| | |||||
* | Silence even more noisy rake task docs | David Heinemeier Hansson | 2010-06-09 | 1 | -12/+12 |
| | |||||
* | Configure generators before invoking. | José Valim | 2010-06-03 | 1 | -0/+1 |
| | |||||
* | Support fixtures for namespaced models [#2965 state:resolved] | Andrew White | 2010-04-25 | 1 | -2/+2 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | db:test:prepare for tasks only if AR is loaded | Santiago Pastorino | 2010-04-09 | 1 | -0/+2 |
| | |||||
* | Revert "When creating database with rake, create schemas in ↵ | Michael Koziarski | 2010-04-09 | 1 | -7/+1 |
| | | | | | | | | | | | | | schema_search_path if it doesn't exist." This reverts commit 6c2a0675f11a9b5b8e88ed7dbccd65cb51be8029. Reverting because it breaks the ability to run tests using a non-superuser. Conflicts: activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb activerecord/lib/active_record/railties/databases.rake | ||||
* | Read postgresql encoding using string key instead of symbol [#4304 ↵ | Doug Richardson | 2010-04-01 | 1 | -1/+1 |
| | | | | | | state:resolved] Signed-off-by: wycats <wycats@gmail.com> | ||||
* | When creating database with rake, create schemas in schema_search_path if it ↵ | Rizwan Reza | 2010-03-28 | 1 | -0/+6 |
| | | | | doesn't exist. | ||||
* | rake tasks should use the new app generator path [#4257 state:resolved] | Sebastian Martinez | 2010-03-23 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | squelching more warnings in the AR tests. [#4218 state:resolved] | Aaron Patterson | 2010-03-18 | 1 | -1/+6 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Print database.rake errors to stderr. | S. Christoffer Eliesen | 2010-02-27 | 1 | -5/+5 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> |