summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-06-27 21:30:35 +0300
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-06-27 21:30:35 +0300
commit50fdb2e7dffd80265bc604ec8f9071e12f99af30 (patch)
tree3b7f2da395fc6c05f57ef695a6d880bff766a80b /db
parent1b1e77c728e575a110e204e142e81bdff2737536 (diff)
downloadgitlab-ce-50fdb2e7dffd80265bc604ec8f9071e12f99af30.tar.gz
Remove critical status from Issue. Move sort instead
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20120627145613_remove_critical_from_issue.rb9
-rw-r--r--db/schema.rb3
2 files changed, 10 insertions, 2 deletions
diff --git a/db/migrate/20120627145613_remove_critical_from_issue.rb b/db/migrate/20120627145613_remove_critical_from_issue.rb
new file mode 100644
index 00000000000..f8d0797197b
--- /dev/null
+++ b/db/migrate/20120627145613_remove_critical_from_issue.rb
@@ -0,0 +1,9 @@
+class RemoveCriticalFromIssue < ActiveRecord::Migration
+ def up
+ remove_column :issues, :critical
+ end
+
+ def down
+ add_column :issues, :critical, :boolean, :null => true, :default => false
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 59098d7ccc1..7ce89c6be8f 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20120413135904) do
+ActiveRecord::Schema.define(:version => 20120627145613) do
create_table "events", :force => true do |t|
t.string "target_type"
@@ -34,7 +34,6 @@ ActiveRecord::Schema.define(:version => 20120413135904) do
t.datetime "updated_at", :null => false
t.boolean "closed", :default => false, :null => false
t.integer "position", :default => 0
- t.boolean "critical", :default => false, :null => false
t.string "branch_name"
t.text "description"
t.integer "milestone_id"