Deleted migration causing problems when all migrations

run from scratch
pull/6827/head
Sebastian Schuster 11 years ago
parent a8d412bd46
commit 84cc888e72
  1. 13
      db/migrate/20130814131243_add_default_document_categories_data.rb

@ -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
Loading…
Cancel
Save