Commit Graph

180 Commits

Author SHA1 Message Date
Jeremy Kemper
8e74a434b8 Don't dump schema for every test run, just when migrations are run 2008-06-16 03:47:15 -07:00
Jeremy Kemper
09c70a0c03 Use test/performance/test_helper to do test setup then boost log level and turn on caching 2008-06-15 16:21:32 -07:00
Jeremy Kemper
eab71208db Performance: integration test benchmarking and profiling. [Jeremy Kemper] 2008-06-14 02:04:38 -07:00
Ryan Kinderman
ed0cb91a83 Ensure plugins' rake tasks are loaded before application's rake tasks. [#259 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-06-05 12:44:38 +01:00
rick
d5bcff172b Consolidate error messages for missing gems, and skip them when running rake gems:* tasks. [rick] 2008-05-31 16:36:34 -07:00
Pratik Naik
98dc582742 Merge docrails.
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-25 12:29:00 +01:00
Tarmo Tänav
3fee2378ed Use 'public' schema path when connecting to 'postgres' database. [#170 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-13 18:25:30 +01:00
Tarmo Tänav
4dedc7ddca Use 'postgres' database instead of 'template1'
The 'postgres' database is meant for use by utilities and third
party applications. CONNECT permission to the 'template1' database
is usually only available to superusers which is why 'postgres'
should be preferred as users whith "CREATE DATABASE" permissions
are not neccessarily superusers.
2008-05-13 17:34:47 +01:00
Pete Deffendol
c26d10563e PostgreSQL: update rake tasks to use full settings from database.yml
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2008-05-04 15:59:34 +12:00
Pete Deffendol
205750c8de PostgreSQL: Connect to template1 database when creating or dropping db
* The template1 database is always available on a PostgreSQL install
 * The previous behavior expected a database with the same name as the
   connecting user, which may not be available

Signed-off-by: Michael Koziarski <michael@koziarski.com>

[#38 state:resolved]
2008-05-04 12:20:14 +12:00
Geoffrey Buesing
cfd56882af rake time:zones:local finds correct base utc offset for zones in the Southern Hemisphere 2008-04-12 16:06:29 -05:00
Michael Koziarski
6ed9e68e21 Allow freezing to specific releases with rake rails:freeze:edge RELEASE=1.2.0 per-release zip files are generated automatically by git-archive on dev.rubyonrails.org. 2008-04-12 12:08:26 +12:00
David Dollar
4364c361b5 Now that we have gems:unpack and gems:build allowing for integration of
100% of your gems into vendor/ it would be nice to have the ability to
automatically unpack the full dependency tree of your specified gems.

This patch adds the rake task gems:unpack:dependencies to do this.

Usage:

gems:unpack:dependencies          # unpack all dependencies
gems:unpack:dependencies GEM=foo  # unpack all dependencies for gem foo
2008-04-11 18:25:11 -04:00
Jeremy Kemper
4b17082107 rake rails:freeze:edge using http://dev.rubyonrails.org/archives/rails_edge.zip instead of Subversion 2008-04-10 22:15:50 -07:00
Rick Olson
0bea3f8391 Don't require rails/gem_builder during rails initialization, it's only needed for the gems:build task. [rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9240 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-08 04:21:32 +00:00
Rick Olson
7d2316604a Flesh out rake gems:unpack to unpack all gems, and add rake gems:build for native extensions. Closes #11513 [ddollar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9215 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-02 17:48:30 +00:00
Jeremy Kemper
25eeea7197 PostgreSQL: use create_ and drop_database for rake tasks. Closes #9045 [ez, nicksieger]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9183 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-01 05:01:33 +00:00
David Heinemeier Hansson
c4be0dbca9 Fixed charset/collation for rake db:create (closes #11331) [matt]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9170 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-31 21:16:17 +00:00
Rick Olson
088ef182e3 Added config.gem for specifying which gems are required by the application, as well as rake tasks for installing and freezing gems. [rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9140 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-30 02:17:28 +00:00
David Heinemeier Hansson
3704f4ba2e Fix new migration versions
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9126 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-28 22:14:04 +00:00
David Heinemeier Hansson
c00de99f69 Switched to UTC-timebased version numbers for migrations and the schema. This will as good as eliminate the problem of multiple migrations getting the same version assigned in different branches. Also added rake db:migrate:up/down to apply individual migrations that may need to be run when you merge branches (closes #11458) [jbarnette]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9122 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-28 21:21:01 +00:00
Geoff Buesing
480a7581d4 Rails::Initializer#initialize_time_zone raises an error if value assigned to config.time_zone is not recognized. Rake time zone tasks only require ActiveSupport instead of entire environment
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9104 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-28 01:45:04 +00:00
Geoff Buesing
f921a96e85 Adding rake tasks time:zones:all, time:zones:us and time:zones:local for finding time zone names for config.time_zone option
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9074 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-22 01:59:09 +00:00
Pratik Naik
3d2177df26 Fix database rake tasks to work with charset/collation and show proper error messages on failure. Closes #11301 [matt]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9004 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-10 11:42:01 +00:00
Michael Koziarski
3028ca5955 Clear active connections before trying to drop the database. Allows db:drop to work with posgresql. Closes #10559 [jqr]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8876 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-15 23:16:01 +00:00
Michael Koziarski
9c4beb5e98 Tidy up description for the rake test task. Closes #10598 [akaspick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8678 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-20 23:27:19 +00:00
David Heinemeier Hansson
64b4c18e15 Refactor check for local databases (closes #10539) [parcelbrat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8535 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-03 00:35:23 +00:00
David Heinemeier Hansson
f5aaf945b6 Added that rails:update is run when you do rails:freeze:edge to ensure you also get the latest JS and config files (closes #10565) [jeff]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8532 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-03 00:14:47 +00:00
Jeremy Kemper
e21c48baf7 db:sessions:clear task uses session_table_name method. Closes #10631 [Cheah Chu Yeow]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8522 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-02 09:03:56 +00:00
Jeremy Kemper
072b9d9fba SQLite: db:drop:all doesn't fail silently if the database is already open. Closes #10577.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8519 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-02 08:28:58 +00:00
Jeremy Kemper
ab9e4c0eaa Ruby 1.9 compatibility. References #1689.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8431 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-17 18:54:55 +00:00
David Heinemeier Hansson
d8f2fea813 Turned on ActionView::Base.cache_template_loading by default in config/environments/production.rb to prevent file system stat calls for every template loading to see if it changed (this means that you have to restart the application to see template changes in production mode) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8416 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-16 23:10:48 +00:00
Jeremy Kemper
70117b0294 Introduce (in /Users/jeremy/rails/git/trunk) to output a crytographically secure secret key for use with cookie sessions.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8400 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-15 02:27:56 +00:00
David Heinemeier Hansson
f60e3aa1ae Fixed that local database creation should consider 127.0.0.1 local (closes #9026) [parcelbrat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8388 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-14 22:32:54 +00:00
David Heinemeier Hansson
3aa54c5e44 Added db:migrate:redo and db:migrate:reset for rerunning existing migrations #10431, (closes #10432) [matt]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8383 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-14 17:51:02 +00:00
David Heinemeier Hansson
9187ed8656 Added db:migrate:redo for rerunning existing migrations (closes #10431) [matt]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8382 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-14 17:47:56 +00:00
Jeremy Kemper
2c951efed3 Don't check for pending migrations if Active Record isn't loaded
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8338 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-09 04:18:28 +00:00
Jeremy Kemper
a456388ff9 Update rails:freeze:gems to work with RubyGems 0.9.5.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8336 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-09 01:20:24 +00:00
Jeremy Kemper
699da7001b The test task stops with a warning if you have pending migrations. Closes #10377.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8324 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-06 18:57:19 +00:00
David Heinemeier Hansson
e47392b81f Added db:fixtures:identity as a way of locating what ID a foxy fixture was assigned (closes #10332) [jbarnette]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8248 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-01 20:53:15 +00:00
David Heinemeier Hansson
2e12afaefe Fixed that db:reset would use migrations instead of loading db/schema.rb [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8123 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-09 21:58:24 +00:00
David Heinemeier Hansson
2a74d71e49 Added db:rollback to rollback the schema one version (or multiple as specified by STEP) [Jeffrey Allan Hardy]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8039 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-26 21:11:07 +00:00
Jeremy Kemper
a2c9c92b72 rake test aborts if tests failed. Closes #9962 [Jason Roelofs]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8008 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-23 20:08:51 +00:00
Jeremy Kemper
1c90758889 Include ARes and Railties in rdoc. Freeze ARes gem instead of AWS.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7803 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-08 07:10:58 +00:00
Jeremy Kemper
98f50607e1 Axe excess backtracery.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7770 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-07 06:09:54 +00:00
Jeremy Kemper
9264bdc8f6 db:create works with remote databases whereas db:create:all only createsdatabases on localhost. Closes #9753.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7718 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-02 03:20:52 +00:00
Rick Olson
8c33359ce8 Moved the SourceAnnotationExtractor to a separate file in case libraries try to load the rails rake tasks twice. rspec_on_rails, I'm looking at you. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7672 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-28 17:02:40 +00:00
David Heinemeier Hansson
f0055871a3 Follow our own conventions (closes #6506) [packagethief]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7603 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-23 22:16:09 +00:00
Jeremy Kemper
ccc9549436 Revert [7574]. Closes #7521.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7594 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-23 11:31:37 +00:00
David Heinemeier Hansson
35e382627e Added rake db:version to get the current schema version from the command line (closes #7521) [pelargir]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7574 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-22 22:12:10 +00:00