Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #4834 from sskirby/fix_usage_of_psql_in_db_test_prepare | Aaron Patterson | 2012-02-23 | 1 | -1/+1 |
| | | | | Fix usage of psql in db:test:prepare | ||||
* | Merge pull request #5038 from carlosantoniodasilva/fix-db-migrate-redo | José Valim | 2012-02-14 | 1 | -1/+4 |
| | | | | Always reenable _dump task in AR databases rake. Closes #5030 | ||||
* | fixes in api docs | Vijay Dev | 2012-01-13 | 1 | -1/+1 |
| | |||||
* | Reconnect to the first database after db:create | Tsutomu Kuroda | 2011-12-25 | 1 | -0/+1 |
| | | | | | Otherwise, the schema and seed will be loaded onto the test database. | ||||
* | Fix database tasks in test namespace. | Juan M. Cuello | 2011-12-19 | 1 | -9/+22 |
| | | | | | This is mostly the same as 876bade5999c51f5031861f703933d50e48512ff that was reverted due to test failures, but now with a correction. | ||||
* | Revert "Merge pull request #4030 from Juanmcuello/database_tasks" | José Valim | 2011-12-19 | 1 | -20/+9 |
| | | | | | This reverts commit a0edfb4d204857f0885784bd12582ae526af43c3, reversing changes made to 4012fcff22e4fe7833aae53b98e3ca9acfe3d3ad. | ||||
* | Fix database tasks in test namespace. | Juan M. Cuello | 2011-12-19 | 1 | -9/+20 |
| | |||||
* | fix a minor typo | Vijay Dev | 2011-12-19 | 1 | -1/+1 |
| | |||||
* | Update activerecord/lib/active_record/railties/databases.rake | José Valim | 2011-12-18 | 1 | -1/+1 |
| | |||||
* | Rename STRUCTURE to DB_STRUCTURE, update dump task description and add ↵ | Dieter Komendera | 2011-12-18 | 1 | -3/+3 |
| | | | | simple testcase. | ||||
* | Make structure file configureable in db:structure:dump analog to SCHEMA in ↵ | Dieter Komendera | 2011-12-16 | 1 | -12/+14 |
| | | | | db:schema dump and clean up a bit. | ||||
* | Allow to run migrations with given scope, with SCOPE=<scope> | Piotr Sarnacki | 2011-12-09 | 1 | -1/+3 |
| | | | | | | | | | | | Scope in migrations can be defined by adding suffix in filename, like: 01_a_migration.blog.rb. Such migration have blog scope. Scope is automatically added while copying migrations from engine, so if you want to revert all of the migrations from given engine, you can just run db:migrate with SCOPE, like: rake db:migrate SCOPE=blog | ||||
* | Stop db:seed from performing a reload of the db | Sam Ruby | 2011-11-18 | 1 | -2/+2 |
| | | | | Fix regression introduced by 38d26b0cb56d82093889efa95992a35ba3bb9f29 | ||||
* | Cleanup of databases.rake psql env variables | Oscar Del Ben | 2011-11-17 | 1 | -8/+9 |
| | |||||
* | No need to `readlines` then `join`, just use `read` :heart: | Arun Agrawal | 2011-11-17 | 1 | -1/+1 |
| | | | same as 4c1a1933cbc5ab96efe340a3b31ac5fee12c99c8 | ||||
* | No need to `readlines` then `join`, just use `read` :heart: | Aaron Patterson | 2011-11-16 | 1 | -1/+1 |
| | |||||
* | dbfile isn't supported anymore, so remove | Aaron Patterson | 2011-11-16 | 1 | -3/+3 |
| | |||||
* | Reduce schema format tests | Aaron Patterson | 2011-11-16 | 1 | -10/+14 |
| | |||||
* | Move conditionals to separate tasks so they can be reused. | Aaron Patterson | 2011-11-16 | 1 | -7/+11 |
| | |||||
* | removing some useless conditionals | Aaron Patterson | 2011-11-16 | 1 | -10/+8 |
| | |||||
* | schema_format :sql should behave like schema_format :ruby | Alex Tambellini | 2011-11-04 | 1 | -38/+66 |
| | | | | | | | This commit adds a db:structure:load task that is run instead of db:schema:load when schema_format is set to :sql. This patch also removes the prefixing of the structure.sql files to mimic the use of a single schema.rb file. The patch originates from github issue #715. | ||||
* | safeguard against configs missing environment or the database key | Vijay Dev | 2011-10-26 | 1 | -1/+1 |
| | |||||
* | minor revision to some new code in databases.rake | Xavier Noria | 2011-10-24 | 1 | -2/+3 |
| | |||||
* | Merge pull request #2419 from ↵ | Xavier Noria | 2011-10-24 | 1 | -11/+15 |
|\ | | | | | | | | | dmitriy-kiriyenko/drop_test_database_in_development_when_running_rake_db_drop When running "rake db:drop" also drop test database in development environment | ||||
| * | When running "rake db:drop" also drop test database in development environment. | Dmitriy Kiriyenko | 2011-09-29 | 1 | -11/+15 |
| | | |||||
* | | Merge pull request #500 from cyril/patch-1 | Jeremy Kemper | 2011-10-08 | 1 | -2/+2 |
|\ \ | | | | | | | Use quotes for command substitution | ||||
| * | | Use quotes for command substitution | Cyril Wack | 2011-05-10 | 1 | -2/+2 |
| | | | |||||
* | | | Merge pull request #3203 from jrmehle/fix_clone_structure | Vijay Dev | 2011-10-06 | 1 | -2/+2 |
|\ \ \ | | | | | | | | | db:test:clone_structure if path to .sql file contains spaces or dashes | ||||
| * | | | Quoted path to <Rails.env>_structure.sql file in db:test:clone_structure task. | Jared Mehle | 2011-10-03 | 1 | -2/+2 |
| | |/ | |/| | | | | Leaving the path unquoted causes errors in paths containing spaces or dashes. | ||||
* / | | Changing rake db:schema:dump to run :environment as well as :load_config, as ↵ | Ben Woosley | 2011-10-04 | 1 | -1/+1 |
|/ / | | | | | | | | | | | | | | | | | | | running :load_config alone will lead to the dumper being run without including extensions such as those included in foreigner and spatial_adapter. This reverses a change made here: https://github.com/rails/rails/commit/5df72a238e9fcb18daf6ab6e6dc9051c9106d7bb#L0L324 I'm assuming here that :load_config needs to be invoked separately from :environment, as it is elsewhere in the file for db operations, if not the alternative is to go back to "task :dump => :environment do". Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | | Merge pull request #2936 from joelmoss/migration_status | Santiago Pastorino | 2011-09-11 | 1 | -5/+7 |
| | | | | | | | | db:migrate:status not looking at all migration paths | ||||
* | | Use mysql_creation_options inside rescue block | Jonathon M. Abbott | 2011-08-14 | 1 | -1/+1 |
| | | | | | | | | | | Commit ecd37084b28a05f05251 did not take into account the use of creation_options inside the access denied exception handler. | ||||
* | | default writing the schema file as utf-8 | Aaron Patterson | 2011-07-29 | 1 | -1/+2 |
| | | |||||
* | | This conditions is required to work with database create task. 1.9.2 is ↵ | Arun Agrawal | 2011-07-21 | 1 | -1/+2 |
| | | | | | | | | having a bug with "Calling return within begin still executes else". | ||||
* | | Fix charset/collate in mysql recreate_database | Simon Baird | 2011-07-07 | 1 | -5/+8 |
| | | | | | | | | | | | | | | See new method mysql_creation_options. It is used by both create_database and recreate_database so they are consistent. (Cherry pick of 3ba3125b24b532876c95c8d9d00c9b69faab5a60) | ||||
* | | Update SQL Server db related rake tasks. | Ken Collins | 2011-06-23 | 1 | -6/+7 |
| | | | | | | | | | | | | * Uses open source smoscript since scptxfr came out in 2000. * Uses sqlcmd which replaces osql. * Takes advantage of host/user/pass passed down by TinyTDS. | ||||
* | | Removed shadowing variable warning in activerecord railties | Alexey Gaziev | 2011-06-20 | 1 | -1/+1 |
| | | |||||
* | | Ensure engine migrations are copied in the same sequence that they are required. | Brian Quinn | 2011-06-10 | 1 | -1/+1 |
| | | |||||
* | | Database.rake file fixed for load_generators | Arun Agrawal | 2011-05-25 | 1 | -2/+1 |
| | | |||||
* | | properly reference yml alias nodes | dmathieu | 2011-05-24 | 1 | -1/+1 |
| | | | | | | | | as per the last version of the yml specifications : http://www.yaml.org/spec/1.2/spec.html#* alias// | ||||
* | | Remove extra white-space on some exception messages. | Sebastian Martinez | 2011-05-23 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #1228 from fcheung/db_time_fix2 | José Valim | 2011-05-23 | 1 | -1/+3 |
|\ \ | | | | | | | Take into account time spent in AR even if a redirect occurs or if it is after the render | ||||
| * | | Take into account time spent in AR even if a redirect occurs or if it is ↵ | Frederick Cheung | 2011-05-23 | 1 | -1/+3 |
| | | | | | | | | | | | | after the render | ||||
* | | | fix connection not established error while running rake task | Bhavin Kamani | 2011-05-21 | 1 | -0/+1 |
|/ / | | | | | | | db:schema:dump | ||||
* | | Add missing require | Santiago Pastorino | 2011-05-17 | 1 | -0/+1 |
| | | |||||
* | | Added some docs to controller runtime. | José Valim | 2011-05-14 | 1 | -1/+4 |
| | | |||||
* | | Reset ActiveRecord::LogSubscriber runtime at the start of each request | Tom Ward | 2011-05-14 | 1 | -0/+5 |
|/ | | | | Previously the runtime was reset implicitly when #cleanup_view_runtime was called at the end of most requests. However, this doesn't happen when the request redirects, or send_file is called. Consequently, the ActiveRecord runtime recorded in the logs included the time taken for both the current request and the previous redirect. Explicitly resetting at the start of each request ensures that this can't happen, no matter what occurs previously. | ||||
* | Interleave db_list and file_list. | Christopher Wade | 2011-05-09 | 1 | -6/+6 |
| | |||||
* | Sort migrations by the migration ID. | Christopher Wade | 2011-05-09 | 1 | -2/+2 |
| | |||||
* | Namespace Fixtures in ActiveRecord | Jason Noble | 2011-05-07 | 1 | -3/+3 |
| | | | [Fixes #439] |