migration problem: add_admin should come after add_suspended_to_users
Reported by Rit Li | August 27th, 2009 @ 10:07 AM | in 0.9.7 "Steinitz"
This migration:
db/migrate/022_add_suspended_to_users.rb
should happen before:
db/migrate/021_add_admin_to_users.rb
When Setting::user_signup is set to "needs_approval"
and fresh run "rake crm:setup", it gives me this error:
rake aborted!
undefined method suspended_at=' for
#<User:0xb6e9a35c>
Comments and changes to this ticket
-
Rit Li August 27th, 2009 @ 10:09 AM
simply rename 021_add_admin_to_users.rb to 023_add_admin_to_users.rb should fix the problem.
-
Mike Dvorkin August 27th, 2009 @ 11:12 PM
- State changed from new to resolved
(from [5c1416db5ee3f44fb8577b1676d5071a7b03ff8b]) Reload User class in [rake crm:setup] task to make sure migration attributes are set [#89 state:resolved] http://github.com/michaeldv/fat_free_crm/commit/5c1416db5ee3f44fb85...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Ruby on Rails CRM platform for Web 2.0 and beyond
People watching this ticket
Referenced by
- 89 migration problem: add_admin should come after add_suspended_to_users (from [5c1416db5ee3f44fb8577b1676d5071a7b03ff8b]) Reload ...