diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-16 09:38:01 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-16 09:38:01 +0000 |
commit | a45c0dc55057e8c10c2d17f8dc26be5d9b771f8d (patch) | |
tree | 93fa80fd96d6c404515d23d3ce1662c2ef7ee517 /db/migrate/20130215111127_add_issues_closed_on.rb | |
parent | 723e21243e8df3cbb8937c32410797fa84c9cb79 (diff) | |
download | redmine-a45c0dc55057e8c10c2d17f8dc26be5d9b771f8d.tar.gz redmine-a45c0dc55057e8c10c2d17f8dc26be5d9b771f8d.zip |
Adds closed_on column that stores the time of the last closing (#824).
The value is preserved when reopening the issue.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11402 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/20130215111127_add_issues_closed_on.rb')
-rw-r--r-- | db/migrate/20130215111127_add_issues_closed_on.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20130215111127_add_issues_closed_on.rb b/db/migrate/20130215111127_add_issues_closed_on.rb new file mode 100644 index 000000000..2670deba5 --- /dev/null +++ b/db/migrate/20130215111127_add_issues_closed_on.rb @@ -0,0 +1,9 @@ +class AddIssuesClosedOn < ActiveRecord::Migration + def up + add_column :issues, :closed_on, :datetime, :default => nil + end + + def down + remove_column :issues, :closed_on + end +end |