OSDN Git Service

remove content column from issues
authorNihad Abbasov <narkoz.2008@gmail.com>
Fri, 11 Nov 2011 09:35:02 +0000 (13:35 +0400)
committerNihad Abbasov <narkoz.2008@gmail.com>
Fri, 11 Nov 2011 09:35:02 +0000 (13:35 +0400)
db/migrate/20111111093150_remove_content_from_issues.rb [new file with mode: 0644]
db/schema.rb

diff --git a/db/migrate/20111111093150_remove_content_from_issues.rb b/db/migrate/20111111093150_remove_content_from_issues.rb
new file mode 100644 (file)
index 0000000..30bcdfb
--- /dev/null
@@ -0,0 +1,9 @@
+class RemoveContentFromIssues < ActiveRecord::Migration
+  def up
+    remove_column :issues, :content
+  end
+
+  def down
+    add_column :issues, :content, :text
+  end
+end
index 3d430f4..c9abdef 100644 (file)
 #
 # It's strongly recommended to check this file into your version control system.
 
-ActiveRecord::Schema.define(:version => 20111101222453) do
+ActiveRecord::Schema.define(:version => 20111111093150) do
 
   create_table "issues", :force => true do |t|
     t.string   "title"
-    t.text     "content"
     t.integer  "assignee_id"
     t.integer  "author_id"
     t.integer  "project_id"