Displaying 20 results from an estimated 20000 matches similar to: "Rake tasks db:test:prepare cannot be executed in the same task of db:reset or db:migrate"
2008 Jan 13
0
rake db:test:prepare causes error
I am a newbie to RoR and I''m having trouble getting testing up and
running. I tried Googling my problem and haven''t found an answer that
has worked. When I run rake db:test:prepare, I get the following error
(I''m working with the RailsSpace book):
Macintosh:rails_space myusername$ rake db:test:prepare
(in /Users/myusername/Documents/rails_projects/rails_space)
rake
2009 Mar 09
2
rake:db:prepare Mysql::Error: #42000BLOB/TEXT column ' used in key specification without a length
I have a test environment running rails 1.2.3. I am just starting to
introduce testing into this project.
When I run a rake db:prepare. I see this message "Mysql::Error:
#42000BLOB/TEXT column ''short_description'' used in key specification
without a key length: CREATE INDEX ''short_description'' on cached_cars
(''short_description'')
The
2008 Aug 29
2
rake db:test:prepare
Hi
I am using postgres And I have already development database..When I
give
rake db:test:prepare it gives
sh: dropdb: command not found
sh: createdb: command not found
But how ever test db is created Same happens also when rake
db:test:clone
I would like to know why I am getting this message
Thanks in advance
Sijo
--
Posted via http://www.ruby-forum.com/.
2007 Dec 09
2
rake db:redo & rake migrations:reset - or how to cope with the change of db:reset
As many of you know, rake db:reset changed behavior just before Rails
2.0 got released.
db:reset used to drop the database, re create it and migrate it up.
The core team after integrating this feature, realized that it was not
used as intended and instead db:create now uses the schema.rb file
instead of the migrations.
Check the many discussions we had about this topic, you will quickly
notice
2008 Nov 06
8
anyone able to explain logic behind "rake spec" startup (e.g. db:test:prepare => abort_if_pending_migration => invoke environment => etc etc)
anyone able to explain logic behind "rake spec" startup? i.e. the
below steps & why things occur when they do
Macintosh-2:myequity greg$ rake spec --trace
(in /Users/greg/source/myequity)
** Invoke spec (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute
2007 Sep 10
0
Character Sets and rake db:test:prepare
As far as I can tell, if I''m using MySQL and I set the character set
and collation on my databases when I create them (e.g. CREATE DATABASE
project_development CHARACTER SET utf8 COLLATION utf8_general_ci),
when I run db:test:prepare it''ll lose that information because
db:test:purge drops and recreates my database without bothering to
check what my character set and collation
2010 Nov 08
0
Rails3: "rake test" task does not run tests.
Hello all,
I have a spiffy new rails3 app for which I can run tests individually,
but not via rake. Behold!
> $ ruby -Itest test/unit/test_user.rb
> Loaded suite test/unit/test_user
> Started
> .
> Finished in 0.466033 seconds.
>
> 1 tests, 1 assertions, 0 failures, 0 errors, 0 skips
>
> Test run options: --seed 21789
and
> $ rake test:units --trace
> (in
2008 Jun 09
0
Error when executing "rake db:migrate" with frozen Rails 2.1.0 on Media Temple
I''m hoping someone might have some insight into this, because I don''t
quite know how to figure this one out. I''m running the command with
Capistrano''s deploy:migrate to my (mt) Media Temple (gs) Grid Server,
but I get the same error (from "rake aborted!" and on below) when I
run "rake db:migrate" directly on the server in the
2008 May 26
1
Rake db task
Hello,
just wanted to know how to create a rake db task to populate data into
a database.
Thanks
Joel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group,
2010 May 28
0
Rake Aborted! db:migrate
Hello, I am trying do a migrate of my database but I have problems, I
write this in the console:
[console]
rake db:migrate
[/console]
And say me:
[console]
(in /home/distriker/Documentos/public_html/crf)
!!! The bundled mysql.rb driver has been removed from Rails 2.2.
Please install the mysql gem and try again: gem install mysql.
rake aborted!
no such file to load -- mysql
(See full trace by
2007 Aug 13
1
Oracle support for rake db:reset
I recently submitted ticket #9240 (1) adding Oracle support for the
rake db:reset task. I don''t consider myself an Oracle expert by any
means, and would appreciate if someone familiar with the database can
take a look and verify that I''m going in the right direction.
Thanks.
1. http://dev.rubyonrails.org/ticket/9240
--
Josh Knowles
joshknowles@gmail.com
2009 Apr 24
1
Can rails environments be loaded only once and then execute rake tasks without loading it again and again?
Hi there guys,
I have a daemon that executes a rake task periodically in a loop in
the backend. And every time it runs the rake task, rails environment
is reloaded. Is there a way that the rails environment is loaded only
once before the loop and the following rake task will not load it
again and again?
Thank you in advance.
2009 Apr 01
4
permission denied errors with rake db:migrate
I am at a loss here and hoping for some advise on where to begin looking
with a series of errors I am suddenly getting when trying to rake:
"anything goes here" ..
lil-loco:/rails/cem craigmartin$ rake db:migrate
(in /rails/cem)
rake aborted!
Permission denied - /rails/cem/db/schema.rb
This is the current error.
lil-loco:/rails/cem craigmartin$ rake db:schema:load
(in /rails/cem)
--
2011 Nov 01
1
rake db:migrate aborted
I''m reading the rails tutorial book and in chapter 6 page 199 I have
to make a rake db:migrate, but I get this error:
rake aborted! undefined method `prerequisites'' for nil:NilClass
(See full trace by running task with --trace)
When I try with rake db:migrate --trace I get the following errors:
rake aborted!
undefined method `prerequisites'' for nil:NilClass
2007 Jan 11
3
rake db:migrate doesn't work anymore
Hi!
Up to now, i had no problems with my migrations and rake (rake
db:migrate). Today, i got a project from a svn repository, but i can''t
do "rake db:migrate":
"rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
Rakefile.rb)
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1822:in
`load_rakefile''
(See full trace by running task
2009 Jul 09
2
rake db:migrate confusion following Cucumber upgrade
I recently upgraded Cucumber gem from 0.1.16 to 0.3.11. I ran ruby
script/generate cucumber.
When I ran rake features I received an error telling me I had pending
migrations and should run rake db:migrate. I ran rake db:migrate
despite fact that my db is up to date. I was confused that the
migrations ran from the beginning. However the migrations seem to
have no effect on my database.
2008 Jan 31
0
Rake Bug? db:create:all directs db:migrate to the test db..
Dear all,
task ''test'' do
Rake::Task[''db:create:all''].invoke
Rake::Task[''db:migrate''].invoke
end
Did I miss something or what? Turns out that this simple task would
have migration done in the test db.
I''ve tried to "puts RAILS_ENV" inbetween and it shows "development",
but migration''s still done in
2010 Feb 22
0
Re: rake db:migrate throws unexpected error
danwoods wrote:
> The Error:
> (in [my current directory])
> rake aborted!
> undefined method `symbolize_keys'' for nil:NilClass
Given that nil does not implement symbolize_keys you need to know where
you''re ending up with a nil.
Have your run your rake task with the --trace option to see if you get a
backtrace that will show you where to look?
rake --trace
2013 Feb 01
0
rake db:migrate failing against oracle
Hello All --
I am using jruby 1.6.7.2 with rails 3.2.11 to create a brown bag for
several other developers. I cannot get the migration to work to save my
life...
In my database yaml file I have the following:
---
development:
adapter: jdbc
driver: oracle.jdbc.driver.OracleDriver
url: jdbc:oracle:thin:@localhost:1521:xe
username: brownbag
password: brownbag
pool: 500
---
When I run:
2006 Jun 18
1
Problem using "rake db:migrate"
Hi all,
I am facing a problem while using rails "migrate" feature for creating
tables in a database.
Following are the details.
I have 2 applications say "app1" & "app2". I want both of them to use same
database say "testdb".
For "app1", I create 3 models which in turn create 3 migration files with
prefix, 001_, 002_ & 003_. Now I