Displaying 20 results from an estimated 1000 matches similar to: "Newbee rake migrate question"
2006 Jan 19
3
problems with migrations in sql server
Is anyone using migrations with a SQL Server database who might be able to
lend me a hand? I''ve used migrations with MySql in the past and haven''t
run into any issues so forgive When I run rake migrate nothing is actually
getting updated in my database. I created a migration using
./script/generate migration AddFooTable and updated the migration to look as
follows:
class
2006 Jul 04
4
MySQL error when running rake migrate
Running rails 1.1 and MySQL 5 on Kubuntu. I moved the same rails project
from one machine to another. To set up the database I try to run `rake
migrate` but I am greeted with the error/stack trace below. Any idea why
this could be? It doesn''t seem to be a permissions problem--I can login
to the database as my application just fine. I tried downgrading MySQL
to v4.1 because that is
2006 Aug 05
5
rake migrate error: nil.first
My migrations were working fine until today. I dropped and re-created the
database.But, when I go to apply my migrations, rake migrate aborts with
this 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.first
Any idea what might be wrong? The migrations look right. It''s talking to
the
2006 May 09
5
Solaris migration error:Lost connection to MySQL server
We have installed rails 1.1.2 and Ruby 1.8.4 on solaris. When we attempt
to
run the initial migration we get the following error:
Mysql::Error: Lost connection to MySQL server during query: SELECT
version FROM schema_info
/web/server/pkgs/ruby-1.8.4/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/abstract_adapter.rb:120:in
`log''
2007 Nov 02
0
uninitialized constant CreateDatabase
I''m trying to run db:migrate and get the error below.
What''s wrong?
(in C:/projects/rails/admin)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
uninitialized constant CreateDatabase
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:266:in
2007 Mar 21
2
ORA-03106: fatal two-task communication protocol error
Has anyone encountered this error or know how to correct it?
I couldn''t find any Rails-specific info about this on google.
Here are the circumstances:
/usr/local/bin/ruby --version
ruby 1.8.4 (2005-12-24) [i686-linux]
/usr/local/bin/rails --version
Rails 1.1.6
## Create mcd app
rails mcd -d oracle
cd mcd
## Create oracle tablespace & user
sqlplus ''/ as
2006 Mar 08
3
migrations schema_info table, Rails Recipes Bug?
I have the rails recipes book and i was going through the migrations
recipe. Everything seemed to work except for the last part in trying to do
a rake migrate with a migration file version 1 and the schema_info version
set to 0. Without the force attribute, the rake migration fails, as
expected.
So the recipe says to run this:
ruby script/runner
2007 Mar 08
3
Problem loading data from database
Hello, I get this error trying to load some data from DB. I''m using
Rails 1.2.2 on Fedora Core 6 and Sybase adapter.
This worked fine when application run under Rails 1.1.6 but now I''m
migrating to 1.2.2 and have some problems.
At browser I got:
SQL Command for table_structure for tplib_bckps failed
Message: schema_info not found. Specify owner.objectname or use
sp_help to
2006 Sep 06
1
Need to override database.yml settings for Capistrano run
All,
Database: SQL Server 2000
SQLServer adapter in ODBC mode
I have a Capistrano deploy script which fails when I run against my
production DB.
Apparently, this is the because the user that is set up for production
has "guest" privileges in my SQL Server database and when Capistrano
runs, instead of looking at the dbo.schema_info table (which has the
correct version # - yes I
2006 Jul 10
2
Problem with migrations, postgresql, AWDwR
Hi all,
Rails 1.1.4
Rake 0.7.1
PostgreSQL 8.1.4
Windows XP Pro
I checked for errata on pragmaticprogrammer.com, but didn''t see any
explicit mention of this issue.
I''m going over the depot example in AWDwR, 2nd ed, and I can''t get the
migration to work on p. 82. Specifically, the AddTestData example (with
reduced description text to save my fingers some typing):
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 Sep 26
0
Fwd: error with schema_info when doing multiple migrations
Posting to merb list in case it is a merb problem. (?!??)
The error still happens with sequel 0.2.1.
---------- Forwarded message ----------
From: Kevin Williams <kevwil at gmail.com>
Date: Sep 23, 2007 10:26 AM
Subject: error with schema_info when doing multiple migrations
To: sequel-talk at googlegroups.com
I tried to post an issue to the project site but it kept giving me 500
server
2006 Aug 01
10
Migration DB Question
Just going through ''agile web development with rails'' 2nd ed.
I accidentally created an empty migration source file with the wrong
name,
ruby script/generate migration add_test_date
and then straight after that created the one I wanted to use
ruby script/generate migration add_test_data
and populated the second one - when I ran
rake db:migrate
a few times it did not seem
2005 Dec 23
1
Better way to import initial migration?
On a rails app that I''m developing I converted a regular old .sql file
into a rails migration. Since I generated the migration in my
development environment, it created the schema_info table for me.
However, when I updated my production environment and tried running
rake migrate it complained that schema_info doesn''t exist. Is there a
rake task for getting around this yet, or
Mysql::Error: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE)
2009 Aug 04
0
Mysql::Error: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE)
Hi, I''ve got an error when I upload a record by iPhone with Chinese
character.
Processing ScoresController#create (for 123.204.56.133 at 2009-08-04
16:19:52) [POST]
Parameters: {"score"=>{"score"=>"79.60", "player_name"=>"δΈ€",
"iphone_identifier"=>"6b194f783d645ba1a7c30c0e31b1b67300eb0a25"},
2010 May 21
1
newbee in XEN
Hi there,
I''m a new user with Xen. I''m trying to create a virtual machine with linux
debian. I have installed the server but now I don''t kno how to configure a
lan. I need to create ten virtal machines inside this server. I don''t know
where I can configure it. Each machine has to use fixed IP Addresess. If any
soul can help me I really apreciate it. Excese my
2008 Dec 14
0
Newbee met problems when do some i18n on rails
1. I have download the zh-CN.yml file from http://github.com/svenfuchs/rails-i18n/tree/master/rails
locale
2. I have put this zh-CN.yml in to my locales folder.
3. I have modified the enviorment.rb like follow:
config.i18n.load_path << Dir[File.join(RAILS_ROOT, ''my'', ''locales'', ''*.
{rb,yml}'')]
config.i18n.default_locale =
2014 May 04
0
newbee questions
Hi,
Im very new to virtualization on Linux, wanting to kick the tires
some, and am wondering where best to go next.
Right now, ive done the 'all in one install' of ovirt 3.4 on a single
fedora 19 machine. Its a desktop with a wifi network interface, and im
trying to set up the kvm hypervisor in combination with macvtap. Any
pointers to docs on what best to do next is appreciated. Im
2004 Jan 18
0
RE: Newbee question (hot phone numbers)
Just dropping a note about hot-desking
I believe hot-desking requires hot phone numbers. These hot phone #
should not be connected to physical phones but rather to a database
entry from where the physical phone(s) is(are) retrieved.
Users should be able to modify (securely) their own database record.
I'm currently trying to understand Bluetooth and the Norwood Bluetooth
initiative.
2005 Jun 06
0
Newbee, help with cdr/odbc/mysql logging problem
Hello,
I have now been playing with Asterisk for about a week and absolutely love it!
Unfortunately I seam to be having a problem with cdr records and mysql
via the ODBC method
It would appear to all be set up properly, and I am able to successfully. log
inbound/outbound activity into my mysql cdr database. All the inserted values
appear to be correct and meaningful but for the Duration