similar to: rake migrate -- which db affected?

Displaying 20 results from an estimated 80000 matches similar to: "rake migrate -- which db affected?"

2006 Jul 25
3
create production tables? use "rake db:migrate"?
Hi, What is the normal mechanism for creating the tables in the (a) test and (b) production databases. For example the following didn''t work for creating the production tables: a) change environment.rb to include "ENV[''RAILS_ENV''] ||= ''production''" b) run "rake db:migrate" However this seemed to still work against DEV not
2013 Oct 29
3
rake db:migrate debacle
Hi there - I''m a ruby newbie and am stuck on the Getting Started with Rails app. See output below. Problem arose when I ran the rake db:migrate command. I also tried the ''rake db:migrate RAILS_ENV=development'' command which may be obvious. Any ideas on how to fix this? Many thanks!! $ ruby -v ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin10.8.0]
2007 Oct 22
4
HOW TO REBUILD DATABASE WITH CAPISTRANO
I''ve deployed an application using Capistrano. But on my local machine I edited one of the earlier migrations. I''ve tried "cap deploy_with_migrations", but it looks like it didn''t rebuild the database. How can I do the equivalent of this using Capistrano? "rake db:migrate VERSION=0" "rake db:migrate" -- Posted via
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
2006 Jul 05
10
rake migrate RAILS_ENV="production"
On the wiki it says to migrate your DB to production, you can run: rake migrate RAILS_ENV="production" This is taken from: http://wiki.rubyonrails.com/rails/pages/UnderstandingMigrations My database is set up with correct MySQL permissions granted and the database.yml is pointing at it. I get no errors when I run it, but equally my production database does not change at all.
2013 May 07
4
Rake db:migrate
Hello, I''m trying to use command rake db:migrate, but in MySQL I continuous get an empty set and I do know why. #/db/seeds.rb User.create(username: "lorenz", password: "mypass", admin: true) When I run: rake db:seed RAILS_ENV=development --trace I received: ** Invoke db:seed (first_time) ** Execute db:seed ** Invoke db:abort_if_pending_migrations (first_time) **
2007 Feb 16
5
rake db:migrate - error 'tSYMBEG'
I''m going through the ''Depot'' project in "Agile Web Development with Rails". I just made the 003_add_test_data.rb file and when I do a "rake db:migrate", I get this error and I can''t figure out what is wrong: rake aborted! ./db/migrate//003_add_test_data.rb:5: parse error, unexpected tSYMBEG 5. :description => (and the
2006 Aug 08
6
rake migrate the first time - uses more than schema_info?
All, I have two migration files, file 1 and file 2. For reasons that I don''t want to go into unless I must, I want to only run file 2 on my production database (file 1 contains a bunch of table creation stuff for already existing tables). I figured if I created a schema_info table and set the version in it to 1, then I could just run rake db:migrate RAILS_ENV=production and just
2007 Dec 26
2
How to set environment when calling rake task inside another
This is what I have inside a rake task. In this rake task I need to call another rake task called email:send_messages. However I need to pass the RAILS_ENV as ''staging''. Rake::Task["rake:email:send_messages"].invoke I tried a lot of variations but none of them work. Rake::Task["rake:email:send_messages"].invoke RAILS_ENV=staging
2006 Oct 15
3
Migrations - add_column :default=>true, :null=>false
This seems pretty brain dead: add_column :types, :notify_on_create, :boolean, {:default=>true, :null=>false} $ rake migrate Error: ERROR: column "notify_on_create" contains null values : ALTER TABLE types ALTER notify_on_create SET NOT NULL Why doesn''t Rails set the new column to true, as it''s supposed to default to? I tried :default=>1 as well (same
2007 May 15
5
rake db:migrate sucks
I have installed ruby1.8.5-22 under windows, and then rails 1.2.3 and also i update rubygems to 0.9.3 with gems update --system however,when i enter the project directory and input the command rake db:migrate,it sucks with the following errors: rake aborted! uninitialized constant ActionController c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:2028:in `const_missing''
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) --
2007 Jan 21
6
rake db:migrate "undefined method `default'" error
Hi all, Just starting with Rails and working through the early chapters of the Pragmatic Programmers Agile Development with Rails book (2nd addition). When doing a "rake db:migrate" to add a column to a table I get this: undefined method `default'' for #<ActiveRecord::ConnectionAdapters::MysqlAdapter:0xb7517ec8> Any ideas? thanks, David PS: Here''s the full
2008 Sep 13
2
rake db:migrate caues BSOD (Blue Screen of Death) on Vista
I''m running latest RoR/Ruby/MySQL 5... I can reproduce at will. Any idea how rake db:migrate could cause Vista to crash? Pete REF: Windows Vista Home Premium (SP1), 2MB RAM, Dell Inspiron 1501 Ruby 1.8.6, Installer 186-26 MySQL 5 MySQL Connector Net 5.2.2 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because
2008 Apr 02
1
Error in my_thread_global_end() when running rake db:migrate
When I run rake db:migrate I get this error at the end. Error in my_thread_global_end(): 1 threads didn''t exit I pinned it down to this code which is in 004_create_permissions.rb. # create admin user user = User.new user.login = ''admin'' user.password = ''password'' user.save(false) If I don''t run user.save(false) I
2006 Apr 23
1
rake db:migrate error: uninitialized constant mysql
Hello, When I run: rake db:migrate , I get the "uninitialized constant mysql" error. I issue the command inside the root of the application InPlaceEditing, a recipe from Chad Fowler''s Rails Recipes. The InPlaceEditing application is inside the directory: c:\instantrails\rails_apps\InPlaceEditing I can run the InstantRails Cookbook tutorial, no problem, so MySql itself is
2010 Feb 14
1
A (hopefully...) quick rake db:migrate question...
Hey Folks, RoR noob here with a quick question. I have added a field to a table using: ruby script/generate migration add_price_to_product price:decimal, and did: rake db:migrate afterwards. no change was reflected in the "Views" though. I''m pretty sure i''m missing something here, can anyone give me a pointer? Many Thanks... John -- You received this message
2006 Nov 16
4
rake db:migrate problem
I am just starting out learning RoR. I am trying to follow along with the Depot project in "Agile Web Development With Rails ed2" and get the error "You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.[]" I ran --trace and get the following, but I am not sure what it means. Can
2008 Jun 03
11
rake db:migrate not working
When I run the rake db:migrate command, I get this: C:\testror\depot>rake db:migrate --trace (in C:/testror/depot) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:migrate rake aborted! 182: Le systÞme d''exploitation ne peut pas exÚcuter %1. - c:/ruby/ lib/ruby/gem
2007 Oct 02
11
rake db:migrate fail! bad descriptor
Dear All, I am just getting into Ruby on Rails, after successfully failing at getting any other programming language to work locally. RoR appears to be a repeat! One problem I keep running into is getting a database up and running. I''m working out of Windows XP. I installed MySQL, it works, runs, will create tables etc. BUT, when I do rake db:migrate...it fails and tells me I have a