svenfuchs/globalize3 — Issue #87: DB Migration fails when a scope is defined
Author: togg
Created: 2011-12-11 15:20:55+00:00
State: open

The DB Migration fails when a scope is defined in the model, e.g:

scope :with_current_locale, with_translations.with_locales(I18n.locale)
To workaround this, the scope can commented out, and after migration enabled again.

Happend on globalize3 0.2.0b4 (latest GIT), Rails 3.1.3/3.1.0

Error:
```
togg@life-ends ~/test/daanporon-Globalize3-test-7f6ecb6 $ rake db:migrate
== CreateProducts: migrating =================================================
-- create_table(:products)
-> 0.0017s
== CreateProducts: migrated (0.0018s) ========================================

== ChangeProducts: migrating =================================================
rake aborted!
An error has occurred, this and all later migrations canceled:

Could not find table 'product_translations'

Tasks: TOP => db:migrate
(See full trace by running task with --trace)
```