public void doJob() {
   // Check if the database is empty
   if (User.count() == 0) {
     // Initial data of the plateform
     Fixtures.load("initial-data.yml");
   }
 }
示例#2
0
 public void doJob() {
   // Check if the database is empty
   if (Phrase.count() == 0) {
     Fixtures.load("initial-data.yml");
   }
 }