From f476c42d00dbea1ddc0736bf991eeb36b9d5dd22 Mon Sep 17 00:00:00 2001 From: Nihad Abbasov Date: Fri, 11 Nov 2011 13:35:02 +0400 Subject: [PATCH] remove content column from issues --- db/migrate/20111111093150_remove_content_from_issues.rb | 9 +++++++++ db/schema.rb | 3 +-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20111111093150_remove_content_from_issues.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 index 000000000..30bcdfb54 --- /dev/null +++ b/db/migrate/20111111093150_remove_content_from_issues.rb @@ -0,0 +1,9 @@ +class RemoveContentFromIssues < ActiveRecord::Migration + def up + remove_column :issues, :content + end + + def down + add_column :issues, :content, :text + end +end diff --git a/db/schema.rb b/db/schema.rb index 3d430f4c2..c9abdef4f 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,11 +11,10 @@ # # 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" -- 2.11.0