diff options
| author | Horus_Arch | 2015-02-20 20:40:51 +0100 |
|---|---|---|
| committer | Horus_Arch | 2015-02-20 20:40:51 +0100 |
| commit | a8d9e02831d4b01e47f24a30144b5522c03b2b8c (patch) | |
| tree | f396994bbe050d14db73048572481d63f175d750 /app/db.go | |
| parent | ffe1b892b4c01c40215a1b8b5697fc35b81186b5 (diff) | |
| download | statuspage-a8d9e02831d4b01e47f24a30144b5522c03b2b8c.tar.gz | |
Config for ip and port. Health check updates now database and redis cache.
Diffstat (limited to 'app/db.go')
| -rw-r--r-- | app/db.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -25,4 +25,5 @@ func InitDB() { Db.Model(&u).AddUniqueIndex("idx_user_name", "name") Db.Model(&u).AddUniqueIndex("idx_user_email", "email") + Db.Model(&h).AddUniqueIndex("idx_host_url", "url") } |
