From 84cc888e7211acb01af037b0b46ebb3fd2fc2295 Mon Sep 17 00:00:00 2001 From: Sebastian Schuster Date: Thu, 15 Aug 2013 18:11:40 +0200 Subject: [PATCH] Deleted migration causing problems when all migrations run from scratch --- ...14131243_add_default_document_categories_data.rb | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 db/migrate/20130814131243_add_default_document_categories_data.rb diff --git a/db/migrate/20130814131243_add_default_document_categories_data.rb b/db/migrate/20130814131243_add_default_document_categories_data.rb deleted file mode 100644 index fa4f6f2343..0000000000 --- a/db/migrate/20130814131243_add_default_document_categories_data.rb +++ /dev/null @@ -1,13 +0,0 @@ -class AddDefaultDocumentCategoriesData < ActiveRecord::Migration - def up - unless DocumentCategory.any? - require "i18n" - DocumentCategory.create!(:name => I18n.t(:default_doc_category_user), :position => 1) - DocumentCategory.create!(:name => I18n.t(:default_doc_category_tech), :position => 2) - end - end - - def down - DocumentCategory.destroy_all - end -end