inossidabile / protector

Comfortable (seriously) white-list security restrictions for models on a field level
MIT License
270 stars 31 forks source link

Protect blocks preventing initial migration from running in production (with eager_load enabled) #19

Closed mwalsher closed 11 years ago

mwalsher commented 11 years ago

With eager_load enabled and trying to migrate for the first time, protect blocks are causing mysql errors.

Mysql2::Error: Table 'itg_staging.docs' doesn't exist: SHOW FULL FIELDS FROM docs

mwalsher commented 11 years ago

Looks like this is related to a Rails 4 issue with eager_load and rake (https://github.com/rails/rails/pull/11389)