Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew8xx8 <avk@8xx8.ru>2013-02-18 18:54:30 +0400
committerAndrew8xx8 <avk@8xx8.ru>2013-02-18 18:54:30 +0400
commite5f048f44d054c0e825c880f7b58f0288cdc122f (patch)
tree983462983cba5542c0ca5b00f2e1aa28591a2322 /db/migrate/20130218141507_remove_closed_from_issue.rb
parent41e97a766b2cf5f75bfca5bb892e49eba720a330 (diff)
Migrations refactored ro support data convertion
Diffstat (limited to 'db/migrate/20130218141507_remove_closed_from_issue.rb')
-rw-r--r--db/migrate/20130218141507_remove_closed_from_issue.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20130218141507_remove_closed_from_issue.rb b/db/migrate/20130218141507_remove_closed_from_issue.rb
new file mode 100644
index 00000000000..95cc064252b
--- /dev/null
+++ b/db/migrate/20130218141507_remove_closed_from_issue.rb
@@ -0,0 +1,9 @@
+class RemoveClosedFromIssue < ActiveRecord::Migration
+ def up
+ remove_column :issues, :closed
+ end
+
+ def down
+ add_column :issues, :closed, :boolean
+ end
+end