parent
a8d412bd46
commit
84cc888e72
@ -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…
Reference in new issue