Set system init to done if we have already more then 2 users.
This commit is contained in:
parent
4a4b3d92fa
commit
020e27688c
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ require 'setting'
|
||||||
class SettingUpdate < ActiveRecord::Migration
|
class SettingUpdate < ActiveRecord::Migration
|
||||||
def up
|
def up
|
||||||
count = User.all.count()
|
count = User.all.count()
|
||||||
if count <= 2
|
if count > 2
|
||||||
Setting.create_or_update(
|
Setting.create_or_update(
|
||||||
:title => 'System Init Done',
|
:title => 'System Init Done',
|
||||||
:name => 'system_init_done',
|
:name => 'system_init_done',
|
||||||
|
|
Loading…
Reference in a new issue