# Globalize\_languages doesn't exist error

**URL:** <https://www.ruby-forum.com/t/globalize-languages-doesnt-exist-error/81148>\
**Category:** Rails I18n\
**Created:** [January 4, 2007, 8:23pm UTC](https://www.ruby-forum.com/t/globalize-languages-doesnt-exist-error/81148 "2007-01-04T20:23:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ingoweiss](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/77aa72/32.png) [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Post date:** [January 4, 2007, 8:23pm UTC](https://www.ruby-forum.com/t/globalize-languages-doesnt-exist-error/81148/1 "2007-01-04T20:23:21Z")

</div>

Hi,

I am getting started with globalize and so far it works ok. At some  
point I had to do ‘rake globalize:teardown’ to reset the database (I had  
the problem where all user translations were stored as ‘built\_in’ as  
described on the ‘example application’ pag). Now when I run ‘rake  
globalize:setup’ again I got the following error:

rake aborted!  
Mysql::Error: #42S02Table ‘globalize\_development.globalize\_languages’  
doesn’t exist: SHOW FIELDS FROM globalize\_languages

and I thought: of course it doesn’t exist - I just deleted it! 😉

I am actually getting the same error now when trying to run any  
migration!

Thanks for any hint how to fix this!

Ingo

---

<div class="post-metadata">

**Author:** ![ingoweiss](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/77aa72/32.png) [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Post date:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/globalize-languages-doesnt-exist-error/81148/2 "2007-01-06T19:30:27Z")

</div>

The problem occurs when you require Globalize and then do anything  
with Locale.set in your rails environment. Whenever rake tasks run,  
it loads the entire environment.

I ended up using the following code (in environment.rb) so that I  
could teardown and setup and use capistrano to manage my app:

# require globalize plugin and set default locale to us english

include Globalize

begin  
Locale.set\_base\_language AppConstants::DEFAULT\_LOCALE  
Locale.set AppConstants::DEFAULT\_LOCALE  
rescue  
puts “\*\* Warning: Install Globalize plugin first and setup using  
rake globalize:setup”  
end

Hope this helps,

–  
Charles Brian Q.  
self-promotion: [www.seebq.com](http://www.seebq.com)  
highgroove studios: [www.highgroove.com](http://www.highgroove.com)  
slingshot hosting: [www.slingshothosting.com](http://www.slingshothosting.com)

Ruby on Rails Bootcamp at the Big Nerd Ranch  
Intensive Ruby on Rails Training:  
[http://www.bignerdranch.com/classes/ruby.shtml](http://www.bignerdranch.com/classes/ruby.shtml)
