Displaying 20 results from an estimated 40000 matches similar to: "rake db:create uninitialized constant Mysql::Error"
2012 Sep 18
2
NoMethodError with rake db:migrate
Hi! First of all, this is my first application on Rails, and i''m stuck at a
migration. i created a demo app (the demo_app from michael hartl''s
tutorial) as usual: rails new demo_app, rails generate scaffold User
name:string email:string, and when i do rake db:migrate, this stack appears:
rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke environment
2010 Apr 28
1
Trying to get Rails working with Sybase ASE
Hi
I''m trying to use the activerecord-sybase-adapter to be able to use ASE with
my rails applications.
But, I am struggling...
I followed (most of) the steps on this informative page:
http://trevoke.net/blog/2009/09/11/connecting-to-sybase-with-rails-on-windows-xp/
Initially I had Rails 2.3.5 installed.
I copied the "Ruby Sybase files" as instructed and the Sybase dll files
2010 Apr 15
1
Problems with rake
I receive an error when I try to create or setup database using rake
command. Rake is installed.
Error: bash: /opt/local/bin/rake: /opt/local/bin/ruby: bad
interpreter: No such file or directory. Is it not in the path but how
come I can to gem list show the gems?
Please help
gem list
*** LOCAL GEMS ***
actionmailer (2.3.5, 2.2.2, 1.3.6)
actionpack (2.3.5, 2.2.2, 1.13.6)
actionwebservice
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
====================================================
--
2010 Jul 16
1
Rails 3 bug: undefined method `<=>' for class `ActiveSupport::Multibyte::Chars'
I''m getting the following bug when I try to run rake db:migrate in
Rails 3 beta 4:
$ rake db:migrate --trace
(in C:/Users/Adam/Documents/Aptana Workspace/QuestionBank)
default formats are encoded in ISO-8859-1
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
== CreateUsers: migrating
2010 Apr 20
1
dashboard: rake install fails (Solaris10)
Hi all,
I am trying to install dashboard 1.0.0rc1. Independantly if have
manually installed authlogic - gem or not it is throwing the following
trace. The problem is the same when I am resetting (rake db:reset) or
dropping the database.
any ideas?
best regards
Lutz
bash-3.00# rake install
(in /opt/puppet-dashboard)
dashboard_development already exists
can''t activate authlogic (=
2011 Jan 19
6
rake aborted! can't convert Hash into String
Hello,
I encouter a problem when i try to do "rake db:migrate":
rake aborted!
can''t convert Hash into String
Here is the trace result:
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
can''t convert Hash into String
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1408:in
2010 Feb 27
1
Cannot migrate DB due to "getaddrinfo: Name or service not known"
I am using Rails 2.2.2 and try to do a DB migration, but got the
following error. I am using Centos 5.4. Can someone give me a clue?
>> rake db:migrate RAILS_ENV="production"
rake aborted!
getaddrinfo: Name or service not known
(See full trace by running task with --trace)
[current]$ rake db:migrate RAILS_ENV="production" --trace
** Invoke db:migrate (first_time)
**
2011 May 11
2
rack problems
I''m having some issues running rake commands for puppet dashboard.
Here is one of the symptoms (see below). I''m a little new to setting
up rails/rack applications, so I may be making a common mistake. It
looks like gems are already packaged with dashboard, specifically
rack-1.01. Should that gem just work out of the box?
Command:
rake RAILS_ENV=production reports:prune upto=1
2009 Nov 13
3
Encoding::UTF_8 missing?
I''ve just done a fresh reinstall of OS X Snow Leopard on my mac, and I''m
having all kinds of problems with Rails, but the latest problem has me
stumped.
Whenever I run rake db:seed to populate my database I hit the following
error:
** Invoke db:seed (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:seed
rake aborted!
uninitialized constant
2009 Jul 20
9
rake error
When I run rake test:units I get this error:
292 tests, 350 assertions, 2 failures, 13 errors
rake aborted!
Command failed with status (1): [/usr/local/bin/ruby -I"lib:test" "/
usr/loc...]
This error just showed up yesterday --- I have no idea how I caused
it. Here is my gem list in case that helps:
actionmailer (2.3.2, 2.2.2)
actionpack (2.3.2, 2.2.2)
activerecord (2.3.2, 2.2.2)
2011 May 01
2
More detailed Test::Unit error report
Hi,
I''m starting to use Test::Unit to create unit tests for my Rails
Applications/Plugins. I don''t have much experience in Ruby Unit Testing. The
problem is that the output report is very simple and it is very difficult to
discover where is the error. Test::Unit does not show the line number of the
error and the Stack Trace printed using the --trace option does not help
either.
2010 Oct 28
2
ActiveRecord JDBC error Generated keys not requested
I''m getting the following error while connecting to mysql using
activerecord-jdbcmysql-adapter (1.0.2). Rails 3.0.1.
ActiveRecord::JDBCError: Generated keys not requested. You need to
specify Statement.RETURN_GENERATED_KEYS to Statement.executeUpdate()
or Connection.prepareStatement().: SET SQL_AUTO_IS_NULL=0
This occurs not matter what application I run it in to e.g. rake,
rails
2011 Apr 27
1
'bignum too big to convert into long' while migration in rails
While i run rake db:migrate i got below error ,let me know any one .
Please it is urgent to me.
D:\raj\tweasier>rake db:migrate --trace
(in D:/raj/tweasier)
DEPRECATION WARNING: Rake tasks in
vendor/plugins/open_flash_chart_2/tasks, vend
or/plugins/resque/tasks, and vendor/plugins/resque/tasks are deprecated.
Use lib
/tasks instead. (called from
2011 Mar 22
2
Problems with SQLite3
Hi!
I''ve got a very strange problem. Suddenly the SQLite3 Backend stopped
working.
Example 1:
> rake db:rollback
== CreateProducts: reverting
=================================================
-- drop_table(:products)
rake aborted!
An error has occurred, this and all later migrations canceled:
SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE
2010 Jun 11
5
Issues creating tables in mysql tests
Hello,
I''m a beginner, so any hints are appreciated; I''m still trying to find my
way around Rails code. For a bug I''ve found I need to create a table called
"values" so I added this:
create_table :values do |t|
t.integer :value
end
among the other table creations in
activerecord/test/cases/migration_test.rb. Is that ok? But then, when I run
the tests
2009 Aug 31
7
"Missing these required gems: rspec-rails" in ruby 1.9
i get the above error when running rake.
I tried switching rails 2.3.3 with 2.3.2 but it didn''t help.
here are my gems:
actionmailer (2.3.2)
actionpack (2.3.2)
activerecord (2.3.2)
activeresource (2.3.2)
activesupport (2.3.2)
builder (2.1.2)
cucumber (0.3.98)
diff-lcs (1.1.2)
hoe (2.3.3)
nokogiri (1.3.3)
polyglot (0.2.8)
rack (1.0.0)
rails (2.3.2)
rake (0.8.7)
rspec (1.2.8)
rspec-rails
2009 Jul 31
43
Error: uninitialized constant MysqlCompat::MysqlRes
Hi,
I installed the "kwatch-mysql-ruby" gem on my Debian server but when I
try to run the "db:migrate" task I get the following error:
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
uninitialized constant MysqlCompat::MysqlRes
2009 Sep 21
4
Announcement: Foreman 0.1-1 is out
Hello All,
I''m happy to announce the next stable release of Foreman, main new features
include:
- Integration of Puppet Reports, once enabled you would see a real time
overview of all of yours hosts status.
- Improved support for multiple Puppet Masters (e.g. import facts and
reports from remote serves over http)
- Simplified migration from existing external nodes setup,
2009 Feb 21
3
Help w/ rake db:migrate error
I made a few changes to my migration files, dropped all tables (rake
db:drop:all), and when I went to re-create everything (rake
db:migrate), I get this:
rake db:migrate --trace
(in /Users/Eric/Development/Work/Rails/pcod)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined method `random'' for Tidbit(Table doesn''t