Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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] | ||||
* | Move sandbox to AR and pass the sandbox as a value. This way, other ORMs ↵ | José Valim | 2011-05-04 | 1 | -0/+6 |
| | | | | like Datamapper can also have their own sandboxing in rails console. | ||||
* | Merge pull request #316 from arunagw/jdbc_postgresql. | Aaron Patterson | 2011-05-01 | 1 | -83/+83 |
|\ | | | | | Re-factored database.rake to allow Jdbcpostgresql. #jruby | ||||
| * | Minor fixes in databases.rake | Arun Agrawal | 2011-04-27 | 1 | -71/+71 |
| | | |||||
| * | Allowing jdbcsqlite3 to drop database, clone structure. #jruby | Arun Agrawal | 2011-04-27 | 1 | -7/+7 |
| | | |||||
| * | Re-factored database.rake to allow Jdbcpostgresql. #jruby | Arun Agrawal | 2011-04-27 | 1 | -5/+5 |
| | | |||||
* | | make sure we flatten the fixture path list | Aaron Patterson | 2011-04-29 | 1 | -1/+1 |
| | | |||||
* | | shorten up our fixture path resolving code | Aaron Patterson | 2011-04-29 | 1 | -2/+2 |
|/ | |||||
* | Database creation for jdbcpostgresql #jruby | Arun Agrawal | 2011-04-26 | 1 | -1/+1 |
| | |||||
* | Fixed error when running db:create with jdbcmysql | Rashmi Yadav | 2011-04-25 | 2 | -1/+23 |
| | |||||
* | 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> |