Set system init to done if we have already more then 2 users.

This commit is contained in:
Martin Edenhofer 2013-03-19 07:16:36 +01:00
parent 4a4b3d92fa
commit 020e27688c

View file

@ -3,7 +3,7 @@ require 'setting'
class SettingUpdate < ActiveRecord::Migration
def up
count = User.all.count()
if count <= 2
if count > 2
Setting.create_or_update(
:title => 'System Init Done',
:name => 'system_init_done',