Fixes 20130814130142_remove_documents.rb

The down migration used i18n that was not available as well as using
table_exists w/o the question mark.
pull/368/head
Martin Czuchra 11 years ago
parent 4c983723aa
commit 84f621de25
  1. 4
      db/migrate/20130814130142_remove_documents.rb
  2. 2
      doc/CHANGELOG.md

@ -12,7 +12,7 @@ class RemoveDocuments < ActiveRecord::Migration
end
def down
unless ActiveRecord::Base.connection.table_exists 'Documents'
unless ActiveRecord::Base.connection.table_exists? 'Documents'
create_table "documents", :force => true do |t|
t.integer "project_id", :default => 0, :null => false
t.integer "category_id", :default => 0, :null => false
@ -23,8 +23,6 @@ class RemoveDocuments < ActiveRecord::Migration
add_index "documents", ["category_id"], :name => "index_documents_on_category_id"
add_index "documents", ["created_on"], :name => "index_documents_on_created_on"
add_index "documents", ["project_id"], :name => "documents_project_id"
DocumentCategory.create!(:name => l(:default_doc_category_user), :position => 1)
DocumentCategory.create!(:name => l(:default_doc_category_tech), :position => 2)
end
end
end

@ -1,5 +1,7 @@
# Changelog
* `#1859` Fix 20130814130142 down-migration (remove_documents)
## 3.0.0pre13
* `#1606` Update journal fixtures

Loading…
Cancel
Save