From 0d5b93b0b154ccabc5c7e3620d46e96d9ac8b0a8 Mon Sep 17 00:00:00 2001 From: Jason Denney Date: Sat, 8 Dec 2012 16:34:39 -0500 Subject: [PATCH] fix if in seeds.rb --- db/seeds.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/seeds.rb b/db/seeds.rb index 29f6ac0..8a6f041 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -13,7 +13,7 @@ Dir.glob(File.join(Rails.root, 'db', 'seed', 'fixtures', '**', '*.{yml,csv}')).e end #Load bike brands and models from sql -if +if BikeBrand.all.empty? and BikeModel.all.empty? sql_path = File.join(Rails.root, 'db', 'seed', 'sql', 'bike_brands_and_models.sql') system "sqlite3 db/development.sqlite3 < #{sql_path}" if Rails.env.development? end