resolve/refinerycms — Issue #1255: rake db:reset / db:setup fails with seeds that come before pages.rb
Author: michailv
Created: 2012-01-26 00:13:34+00:00
State: open

In 1.0.9, if you engines that create a seed that comes before pages.rb in an alpha list, trying to recreate the database using the schema (rake db:reset) fails. This seems to be because pages.rb is what ensures that the pages model 'is_seo_meta'. The migrations fail on whatever the first engine is that tries to use pages.

Error:

undefined method `meta_keywords' for #

Will post full trace in a gist.

As long as pages is first, everything runs fine. I renamed "seeds/pages.rb" to "seeds/_pages.rb" in my project. I haven't been able to test in edge yet, will try tomorrow.