Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running rake db:reset causes problems #807

Closed
mbrennan opened this issue Jul 8, 2011 · 3 comments
Closed

Running rake db:reset causes problems #807

mbrennan opened this issue Jul 8, 2011 · 3 comments

Comments

@mbrennan
Copy link

mbrennan commented Jul 8, 2011

In Refinery 1.0.3, the rake db:reset and rake db:setup commands use the schema.rb file to quickly setup a database for production or for other reasons instead of using rake db:migrate. If one needs to rebuild their database, they have to issue:

rake db:drop
rake db:create
rails generate refinerycms
rails generate (other refinery engines)
rake db:migrate
rake db:seed

it'd be easier if refinery supported:
rake db:reset
rake db:seed

@parndt
Copy link
Member

parndt commented Jul 9, 2011

The generate commands seem unnecessary, why those too?

@parndt
Copy link
Member

parndt commented Jul 9, 2011

Seems like rake db:reset is running the seeds because that's where it breaks for me. I can't figure out a way to make it redo itself so that it knows about meta_keywords (which is included by seo_meta and works when migrating)

parndt added a commit that referenced this issue Jul 17, 2011
@parndt parndt closed this as completed in b02a7e0 Jul 17, 2011
@scambra
Copy link
Contributor

scambra commented Sep 7, 2011

It doesn't work with ruby 1.8, instance_methods return a array of strings, seo_meta attributes are symbols. It works in 1.9 because instance_methods return symbols

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants