Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove FirebirdDatabaseTasks was deprecated, because this was provided by ↵ | kennyj | 2013-06-05 | 1 | -2/+0 |
| | | | | 3rd-party. | ||||
* | Remove SqlseverDatabaseTasks was deprecated, because this was provided by ↵ | kennyj | 2013-06-05 | 1 | -1/+0 |
| | | | | 3rd-party. | ||||
* | Remove OracleDatabaseTasks was deprecated, because this was provided by ↵ | kennyj | 2013-06-05 | 1 | -1/+0 |
| | | | | 3rd-party. | ||||
* | Abort a rake task when missing db/structure.sql like `db:schema:load` task. | kennyj | 2013-05-01 | 1 | -0/+8 |
| | |||||
* | Review DatabaseTasks docs [ci skip] | Carlos Antonio da Silva | 2013-04-24 | 1 | -17/+17 |
| | |||||
* | Use env == 'development' instead of env.development? | Piotr Sarnacki | 2013-04-24 | 1 | -1/+1 |
| | | | | | | It's simpler to assume that passed env is just a string without any extensions, especially when DatabaseTasks are intended to be used also without rails. | ||||
* | Don't require Rails.env in order to use AR::Tasks::DatabaseTasks | Piotr Sarnacki | 2013-04-24 | 1 | -6/+7 |
| | |||||
* | Add some documentation to ActiveRecord::Tasks::DatabaseTasks | Piotr Sarnacki | 2013-04-24 | 1 | -1/+29 |
| | | | | | | This is a public class, which could be used directly in order to allow easier database management. Now it also contains settings, which will be used by databases.rake. | ||||
* | Use DatabaseTasks.fixtures_path instead of FIXTURES_PATH in db.rake | Piotr Sarnacki | 2013-04-24 | 1 | -1/+2 |
| | | | | | | This will allow to set fixtures path in global config easier, it should be not needed to use FIXTURES_PATH every time user wants to load fixtures. | ||||
* | Don't require having Rails.application to run database tasks | Piotr Sarnacki | 2013-04-24 | 1 | -0/+11 |
| | |||||
* | Extract Oracle database tasks. | kennyj | 2013-04-03 | 1 | -5/+6 |
| | |||||
* | Extract Sqlserver database tasks. | kennyj | 2013-04-03 | 1 | -1/+3 |
| | |||||
* | Extract Firebird database tasks. | kennyj | 2013-04-03 | 1 | -0/+1 |
| | |||||
* | Raise a specific exception with a useful message if a rake task is requested ↵ | Daniel Azuma | 2013-01-30 | 1 | -0/+4 |
| | | | | for an unknown adapter | ||||
* | Bring back "database already exists" messages when running rake tasks | Carlos Antonio da Silva | 2013-01-12 | 1 | -0/+4 |
| | | | | | | | | | | 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. | ||||
* | fixed support for DATABASE_URL for rake db tasks | Grace Liu | 2012-09-11 | 1 | -0/+28 |
| | | | | | | | | | | | | - 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). | ||||
* | removes usage of Object#in? from the code base (the method remains defined ↵ | Xavier Noria | 2012-08-06 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | by Active Support) Selecting which key extensions to include in active_support/rails made apparent the systematic usage of Object#in? in the code base. After some discussion in https://github.com/rails/rails/commit/5ea6b0df9a36d033f21b52049426257a4637028d we decided to remove it and use plain Ruby, which seems enough for this particular idiom. In this commit the refactor has been made case by case. Sometimes include? is the natural alternative, others a simple || is the way you actually spell the condition in your head, others a case statement seems more appropriate. I have chosen the one I liked the most in each case. | ||||
* | Merge pull request #6838 from kennyj/added_registration_task | Carlos Antonio da Silva | 2012-07-07 | 1 | -7/+11 |
|\ | | | | | Allow to register database tasks from different adapters | ||||
| * | Added a feature to add a database task. e.g. OracleDatabaseTasks | kennyj | 2012-06-24 | 1 | -7/+11 |
| | | |||||
* | | Extract collation tasks to database tasks. | kennyj | 2012-07-01 | 1 | -0/+9 |
|/ | |||||
* | Refactor db:structure:load task. | kennyj | 2012-06-21 | 1 | -0/+6 |
| | |||||
* | Refactor db:structure:dump task. | kennyj | 2012-06-20 | 1 | -0/+6 |
| | |||||
* | Refactor db:charset task | Simon Jefford | 2012-06-19 | 1 | -0/+9 |
| | | | | | In a similar vein to Pat's work on create, drop etc, the db:charset task is now a one liner in databases.rake | ||||
* | Make DatabaseTasks a module with real private methods | Carlos Antonio da Silva | 2012-06-18 | 1 | -13/+14 |
| | |||||
* | add :nodoc: to AR::Tasks and update to follow the coding conventions | Francesco Rodriguez | 2012-06-18 | 1 | -66/+71 |
| | |||||
* | Rails is the default (but now override able) source for environment and path. | Pat Allan | 2012-06-17 | 1 | -12/+18 |
| | |||||
* | Cleaning up after some warnings, adding slightly higher-level tests. | Pat Allan | 2012-06-17 | 1 | -3/+3 |
| | |||||
* | One line db:create/db:drop tasks. | Pat Allan | 2012-06-17 | 1 | -0/+46 |
| | | | | | | Now isn't that better? And yes, I know that private has no impact on class methods - it's a visual distinction, not a technical one. | ||||
* | db:drop and some of db:test:purge. | Pat Allan | 2012-06-17 | 1 | -2/+13 |
| | |||||
* | db:create for PostgreSQL pulled out into a class. | Pat Allan | 2012-06-17 | 1 | -1/+1 |
| | |||||
* | db:create for MySQL now much cleaner. | Pat Allan | 2012-06-17 | 1 | -7/+12 |
| | |||||
* | A beginning of sorts. | Pat Allan | 2012-06-17 | 1 | -0/+14 |
Minimal implementation that supports db:create SQLite replacement |