Просмотр исходного кода

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

Martin Edenhofer 12 лет назад
Родитель
Сommit
020e27688c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      db/migrate/20130319003833_setting_update.rb

+ 1 - 1
db/migrate/20130319003833_setting_update.rb

@@ -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',