On 20/06/12 18:09 -0400, John Eckersberg wrote:
Previously, the default admin user was created by aeolus-configure, but this approach was confusing for users. By creating the admin as part of the database seeds, we are guaranteed to always have a usable admin user at first login. The expecation is for administrative users to be managed via the web UI (or API), not via configure.
src/db/seeds.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
I have not tested this, but looks reasonable on quick viewing (this is not an ack or nack btw). However, I am wondering if this could/shoudl be added $elsewhere, like scott did with the new roles, which I believe gets called via our rake dc:upgrade script. I guess it might be safe for an existing installation, and I wil roll with that if you think it is, just wanted to make sure we thought of that case before introducing new seed data.
-j