aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/railties
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | properly reference yml alias nodesdmathieu2011-05-241-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 Martinez2011-05-231-1/+1
| |
* | Merge pull request #1228 from fcheung/db_time_fix2José Valim2011-05-231-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 Cheung2011-05-231-1/+3
| | | | | | | | | | | | after the render
* | | fix connection not established error while running rake taskBhavin Kamani2011-05-211-0/+1
|/ / | | | | | | db:schema:dump
* | Add missing requireSantiago Pastorino2011-05-171-0/+1
| |
* | Added some docs to controller runtime.José Valim2011-05-141-1/+4
| |
* | Reset ActiveRecord::LogSubscriber runtime at the start of each requestTom Ward2011-05-141-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 Wade2011-05-091-6/+6
|
* Sort migrations by the migration ID.Christopher Wade2011-05-091-2/+2
|
* Namespace Fixtures in ActiveRecordJason Noble2011-05-071-3/+3
| | | [Fixes #439]
* Move sandbox to AR and pass the sandbox as a value. This way, other ORMs ↵José Valim2011-05-041-0/+6
| | | | like Datamapper can also have their own sandboxing in rails console.
* Merge pull request #316 from arunagw/jdbc_postgresql.Aaron Patterson2011-05-011-83/+83
|\ | | | | Re-factored database.rake to allow Jdbcpostgresql. #jruby
| * Minor fixes in databases.rake Arun Agrawal2011-04-271-71/+71
| |
| * Allowing jdbcsqlite3 to drop database, clone structure. #jrubyArun Agrawal2011-04-271-7/+7
| |
| * Re-factored database.rake to allow Jdbcpostgresql. #jrubyArun Agrawal2011-04-271-5/+5
| |
* | make sure we flatten the fixture path listAaron Patterson2011-04-291-1/+1
| |
* | shorten up our fixture path resolving codeAaron Patterson2011-04-291-2/+2
|/
* Database creation for jdbcpostgresql #jrubyArun Agrawal2011-04-261-1/+1
|
* Fixed error when running db:create with jdbcmysqlRashmi Yadav2011-04-252-1/+23
|
* Remove `#among?` from Active SupportPrem Sichanugrist2011-04-131-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 Hansson2011-04-121-1/+1
| | | | suggestion!
* Using Object#in? and Object#either? in various placesPrem Sichanugrist2011-04-111-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?.