Mercurial > hg > soundsoftware-site
comparison db/migrate/20130217094251_remove_issues_default_fk_values.rb @ 1295:622f24f53b42 redmine-2.3
Update to Redmine SVN revision 11972 on 2.3-stable branch
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:02:21 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1294:3e4c3460b6ca | 1295:622f24f53b42 |
---|---|
1 class RemoveIssuesDefaultFkValues < ActiveRecord::Migration | |
2 def up | |
3 change_column_default :issues, :tracker_id, nil | |
4 change_column_default :issues, :project_id, nil | |
5 change_column_default :issues, :status_id, nil | |
6 change_column_default :issues, :assigned_to_id, nil | |
7 change_column_default :issues, :priority_id, nil | |
8 change_column_default :issues, :author_id, nil | |
9 end | |
10 | |
11 def down | |
12 change_column_default :issues, :tracker_id, 0 | |
13 change_column_default :issues, :project_id, 0 | |
14 change_column_default :issues, :status_id, 0 | |
15 change_column_default :issues, :assigned_to_id, 0 | |
16 change_column_default :issues, :priority_id, 0 | |
17 change_column_default :issues, :author_id, 0 | |
18 end | |
19 end |