comparison app/Bootstrap.java @ 1:6875b5685dda draft

add initial-data.yml
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Thu, 13 Sep 2012 01:02:58 +0900
parents 03e9be886e82
children
comparison
equal deleted inserted replaced
0:03e9be886e82 1:6875b5685dda
8 public class Bootstrap extends Job { 8 public class Bootstrap extends Job {
9 9
10 public void doJob() { 10 public void doJob() {
11 // Check if the database is empty 11 // Check if the database is empty
12 if(User.count() == 0) { 12 if(User.count() == 0) {
13 Fixtures.loadModels("initial-data.yml"); 13 Fixtures.loadModels("initial-data.yml");
14 } 14 }
15 15
16 } 16 }
17 17
18 } 18 }