aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/railties
Commit message (Collapse)AuthorAgeFilesLines
* Fix GH #5435. db:structure:dump should be reenable.kennyj2012-03-171-0/+1
|
* Merge pull request #5162 from kennyj/schema_cache_dumpAaron Patterson2012-03-071-0/+19
|\ | | | | [Proposal] Schema cache dump
| * Add db:schema:cache:dump and db:schema:cache:clear tasks.kennyj2012-03-011-0/+19
| |
* | Merge pull request #5305 from arunagw/warning_fixVijay Dev2012-03-071-1/+1
|\ \ | | | | | | warning fix : mismatched indentations at 'end' with 'case'
| * | warning fix : mismatched indentations at 'end' with 'case'Arun Agrawal2012-03-061-1/+1
| | |
* | | Clean up module docs [ci skip]Vijay Dev2012-03-071-1/+1
|/ / | | | | | | Removed some useless docstrings and no-doc'ed some.
* | Merge pull request #4984 from raghunadhd/change_orderhashVijay Dev2012-03-031-1/+1
|\ \ | |/ |/| Refactored code
| * Refactored codeRaghunadh2012-02-101-1/+1
| |
* | Correctly print names of non-timestamped migrations with db:migrate:statusPeter Mitchell2012-02-171-2/+3
| |
* | Always reenable _dump task in AR databases rake. Closes #5030Carlos Antonio da Silva2012-02-141-1/+4
| | | | | | | | | | | | | | This allows the internal :_dump task to be called as many times as required. For instance, `rake db:migrate:redo` calls two tasks that internally call :_dump, and without reenabling it to be reinvoked, the database was left in incorrect state.
* | fixes rake db:test:prepare when using postgresql with sql db structure file ↵Sean Kirby2012-02-011-1/+1
|/ | | | and specifying a template in database.yml
* fixes in api docsVijay Dev2012-01-131-1/+1
|
* Rails::Plugin has goneSantiago Pastorino2012-01-031-1/+1
|
* Revert "This conditions is required to work with database create task. 1.9.2 ↵Arun Agrawal2011-12-271-2/+1
| | | | | | | is having a bug with "Calling return within begin still executes else". " No need to worry about 1.9.2 with master This reverts commit fbf4bee6ed3682b361d6fbeca8e185e665e26b81.
* Reconnect to the first database after db:createTsutomu Kuroda2011-12-231-0/+1
| | | | | Otherwise, the schema and seed will be loaded onto the test database.
* Fix database tasks in test namespace.Juan M. Cuello2011-12-191-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é Valim2011-12-191-20/+9
| | | | | This reverts commit a0edfb4d204857f0885784bd12582ae526af43c3, reversing changes made to 4012fcff22e4fe7833aae53b98e3ca9acfe3d3ad.
* Fix database tasks in test namespace.Juan M. Cuello2011-12-191-9/+20
|
* fix a minor typoVijay Dev2011-12-191-1/+1
|
* Update activerecord/lib/active_record/railties/databases.rakeJosé Valim2011-12-181-1/+1
|
* Rename STRUCTURE to DB_STRUCTURE, update dump task description and add ↵Dieter Komendera2011-12-181-3/+3
| | | | simple testcase.
* Make structure file configureable in db:structure:dump analog to SCHEMA in ↵Dieter Komendera2011-12-161-12/+14
| | | | db:schema dump and clean up a bit.
* Allow to run migrations with given scope, with SCOPE=<scope>Piotr Sarnacki2011-12-091-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 dbSam Ruby2011-11-181-2/+2
| | | | Fix regression introduced by 38d26b0cb56d82093889efa95992a35ba3bb9f29
* Cleanup of databases.rake psql env variablesOscar Del Ben2011-11-171-8/+9
|
* No need to `readlines` then `join`, just use `read` :heart:Arun Agrawal2011-11-171-1/+1
| | | same as 4c1a1933cbc5ab96efe340a3b31ac5fee12c99c8
* No need to `readlines` then `join`, just use `read` :heart:Aaron Patterson2011-11-161-1/+1
|
* dbfile isn't supported anymore, so removeAaron Patterson2011-11-161-3/+3
|
* Reduce schema format testsAaron Patterson2011-11-161-10/+14
|
* Move conditionals to separate tasks so they can be reused.Aaron Patterson2011-11-161-7/+11
|
* removing some useless conditionalsAaron Patterson2011-11-161-10/+8
|
* schema_format :sql should behave like schema_format :rubyAlex Tambellini2011-11-041-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 keyVijay Dev2011-10-261-1/+1
|
* minor revision to some new code in databases.rakeXavier Noria2011-10-241-2/+3
|
* Merge pull request #2419 from ↵Xavier Noria2011-10-241-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 Kiriyenko2011-09-291-11/+15
| |
* | Merge pull request #500 from cyril/patch-1Jeremy Kemper2011-10-081-2/+2
|\ \ | | | | | | Use quotes for command substitution
| * | Use quotes for command substitutionCyril Wack2011-05-101-2/+2
| | |
* | | Merge pull request #3203 from jrmehle/fix_clone_structureVijay Dev2011-10-061-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 Mehle2011-10-031-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 Woosley2011-10-041-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_statusSantiago Pastorino2011-09-111-5/+7
| | | | | | | | db:migrate:status not looking at all migration paths
* | Use mysql_creation_options inside rescue blockJonathon M. Abbott2011-08-141-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-8Aaron Patterson2011-07-291-1/+2
| |
* | This conditions is required to work with database create task. 1.9.2 is ↵Arun Agrawal2011-07-211-1/+2
| | | | | | | | having a bug with "Calling return within begin still executes else".
* | Fix charset/collate in mysql recreate_databaseSimon Baird2011-07-071-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 Collins2011-06-231-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 railtiesAlexey Gaziev2011-06-201-1/+1
| |
* | Ensure engine migrations are copied in the same sequence that they are required.Brian Quinn2011-06-101-1/+1
| |
* | Database.rake file fixed for load_generatorsArun Agrawal2011-05-251-2/+1
| |