huginn/db
Dominik Sander 2cd37e2ab4 Do not seed when a user exists
Previously the seed logic ran when `SEED_EMAIL` was unset and the `admin`
users email address was changed, or if `SEED_EMAIL` did not match it
anymore.

We run `db:seed` on every docker container start to make it easy to get
started with Huginn. That could lead to situations in which the
container did not start if the admin users email address was changed (the
Seeder failed due to the uniqueness constraint on `username`).

Since we "seed" the database I think it is best to bail out of the
seeding logic as long as at least one user exists.

Fixes #2362
2018-10-03 12:03:31 +02:00
..
migrate Replace references to https://github.com/cantino/huginn with huginn/huginn 2017-09-01 18:56:10 +09:00
seeds Do not seed when a user exists 2018-10-03 12:03:31 +02:00
seeds.rb Sets the new user up with an example set of agents 2016-04-10 16:03:21 -07:00