From 94cb0c687be463eff98ad28682c70ff4780eef3a Mon Sep 17 00:00:00 2001 From: Eyal Levin Date: Tue, 26 Aug 2014 15:25:23 +0300 Subject: [PATCH] name_lower can't be nil. --- db/fixtures/001_categories.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/fixtures/001_categories.rb b/db/fixtures/001_categories.rb index 5559eaaa2..edc23155f 100644 --- a/db/fixtures/001_categories.rb +++ b/db/fixtures/001_categories.rb @@ -12,8 +12,8 @@ if SiteSetting.uncategorized_category_id == -1 || !Category.exists?(SiteSetting. end result = Category.exec_sql "INSERT INTO categories - (name,color,slug,description,text_color, user_id, created_at, updated_at, position) - VALUES ('#{name}', 'AB9364', 'uncategorized', '', 'FFFFFF', -1, now(), now(), 1 ) + (name,color,slug,description,text_color, user_id, created_at, updated_at, position, name_lower) + VALUES ('#{name}', 'AB9364', 'uncategorized', '', 'FFFFFF', -1, now(), now(), 1, '#{name.downcase}' ) RETURNING id " category_id = result[0]["id"].to_i