Skip to content

Instantly share code, notes, and snippets.

@webmonarch
Created November 25, 2012 03:52
Show Gist options
  • Save webmonarch/4142332 to your computer and use it in GitHub Desktop.
Save webmonarch/4142332 to your computer and use it in GitHub Desktop.
Devise + RefineryCMS Setup Scripts
u = User.create!({ :email => "eric@example.com", :password => "example" })
ad = Role["Superuser"]
rf = Role["Refinery"]
u.roles << ad
u.roles << rf
# add everything except refinery auth gem
bundle update
rails g refinery:cms --skip-db
# prune migrations
rm config/database.yml.mysql config/database.yml.postgresql config/database.yml.sqlite3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment