similar to: Rake help

Displaying 20 results from an estimated 80000 matches similar to: "Rake help"

2007 Jun 09
1
Rake test tasks only work with --trace
So this has left me completely confused. I''m trying to get the test suite going on an existing app, but things going a little crazy. In the application directory if I do ''rake'' or ''rake test'' I get: rake aborted! Lost connection to MySQL server during query However if I do ''rake test:units'' or ''rake
2006 Sep 05
0
rake craziness with Migrate as a dependency
Hi everyone, For one of our projects we have a need to deploy and maintain a demo. As a result I''ve attempted to setup a set of rake tasks for the job. My goal is have one rake task called "deploy_demo" which purges the database, migrates to the current schema, and loads the db from a set of fixture files in a specified location. I''ve written two new tasks the perform
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) --
2006 Jun 21
3
rake migrate says table already exists
Hi all, I used the generate script to make a bunch of table migrations, resulting in files like 002_bookmarks.rb, 003_tags.rb, etc. When I did the ''rake migrate'', the db was set up but more migration files appeared, now called 009_create_bookmarks.rb, 010_create_tags.rb, etc. Now when I want to change the database (add a table or column, alter the schema) I do
2006 Jan 12
1
Best Forum? Was: Migration doesn''t seem to preserve create_table options in schema
Hi, is this the best forum to answer this question? Is there any better source for information or another mailinglist to address this question to? Cheers, Mariano ---------- Forwarded message ---------- From: Mariano Kamp <mariano.kamp@gmail.com> Date: Jan 8, 2006 6:24 PM Subject: Migration doesn''t seem to preserve create_table options in schema To: rails@lists.rubyonrails.org
2006 Apr 25
3
command rake migration also runs #down method ?
Hi, i am new to rails and trying to understand the migrate feature of rake whenever I call "rake migrate", i understand it call all the latest version of a given of given migrate files. Now when these files are executed, id the #down method called and then the #up ? or must i explicitly call the #down method from rake. If yes how do i do that from rake ? I experimented with rake
2007 Jul 06
1
migration column options not in schema.rb?
Forgive me if this has been discussed. I''m new to rails and not sure where to check yet. Also... forgive me if this shows up twice. I tried posting first through the google groups interface and I''m not sure if it went through. I have rails 1.2.3 installed. I have a migration that looks like create_table :test_runs do |t| t.column :test_spec_id, :integer t.column
2006 Jan 19
3
Migrating from Mysql to PostgreSQL
I tried to use ''rake db_schema_dump'' from old MySQL database and then use ''rake db_schema_import'' to rebuild the database in PostgreSQL. The issue here is that only some of tables can be imported successfully. For example, in the dumped schema.rb: create_table "profiles", :force => true do |t| t.column "ticker", :string, :limit
2006 Jan 08
0
Migration doesn''t seem to preserve create_table options in schema
Hi, I have the following migration (abbreviated): class Initial < ActiveRecord::Migration def self.up create_table :messages, :options => ''ENGINE=MyISAM'', :force => true do |t| t.column :id, :integer, :null => false t.column :external_id, :string, :null => false t.column :recipients_count, :integer, :default => 0
2006 Aug 02
0
rake works but rake test:units fails, strange trace
Hi, When I run rake, everything works fine but when I run rake test:units I get an error apparently while it''s trying to create db tables saying the table already exists. I ran rake with trace to see the differences. It appears that rake test:units does db:schema:load twice, maybe that is the problem? Anyone know why this might be? Output of trace below Rake ** Invoke default
2010 May 28
3
Beginner Facing Problem with rake db:migrate
I am beginner for this Rails from the past 2 days I am working hard to fix the following error C:\Murali Rubby\demo\library>rake db:migrate --trace (in C:/Murali Rubby/demo/library) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:migrate == CreateBooks: migrating ==================================================== --
2006 Aug 15
3
Rake Problem
I''m trying to follow the tutorial in the "agile web development with rails" book which I bought. After creating the database migration file for mysql, When I try to run rake on my database migration to create table in mysql, I get depot>rake db:migrate (in C:/xxx/RoR/depot) rake aborted! undefined method `each'' for #<Mysql:0x38da498> any idea what i might
2006 Feb 16
9
rake migrate HANGS
I have been attempting to use migrations as a build a poll app. I have created the initial file: ----------------- class CreateTablePollsAndPollOptions < ActiveRecord::Migration def self.up create_table polls do |table| table.column ''question'', :string table.column ''user_id'', :integer table.column ''start_time'',
2006 May 28
0
rake errors - not as helpful as they could be
hi list - i recently attempted to run rake for a first pass at some tests and ran into a mysterious failure. rake indicated that it had aborted running the tests but provided little information on exactly why this occurred. the only bit of information it did offer was that i could use --trace for a full trace. of course i did that hoping it would provide more detail, but it didn''t help a
2006 Apr 03
0
follow_redirect! aborts rake during integration tests
I''m running integration tests on Rails 1.1/Ruby 1.8.4/Windows XP and have found that any call to follow_redirect! (directly or through [get|post]_via_redirect) causes rake to abort (see command line output below). Has anyone else seen this error, or know what might be the trouble? Thanks! Tom C:\dev\h2h>rake test:integration --trace (in C:/dev/h2h) ** Invoke test:integration
2006 Jan 21
5
Help...why ''rake migrate'' can''t be executed on RadRails
''rake migrate'' command can''t be executed on RadRails? I found Terminal Window at RadRails and executed ''rake migrate'' on that terminal many times.but nothing happend,even error messages. I made InitialSchema file like these and configured database.yml. of course I made database before executing ''rake migrate'' anyone,get me
2007 Oct 05
0
RSpec Trunk - Successful : Rake Aborted
$ rake spec --trace (in /work/workspace/ng) ** Invoke spec (first_time) ** Invoke db:test:prepare (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:test:prepare ** Invoke db:test:clone (first_time) ** Invoke db:schema:dump (first_time) ** Invoke environment ** Execute db:schema:dump ** Invoke db:test:purge (first_time) ** Invoke environment ** Execute
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
2006 Apr 20
4
Newbee rake migrate question
with a simple table def. class Objects < ActiveRecord::Migration def self.up create_table :objects do |table| table.column :name, string end def self.down drop_table :objects end end when I run rake migrate, I get: ** Invoke migrate (first_time) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:migrate rake
2009 May 26
0
rake db:schema:dump doesn't produce composite primary key instructions
Hey there, I''ve adjusted some of my many to many join tables recently to use a composite primary key based on the id''s in the two columns - instead of using a surrogate key. I just did a db:schema:dump, and it looks something like this: create_table "class_members", :id => false, :force => true do |t| t.integer "user_id", :default => 0,