##// END OF EJS Templates
Fixed #down for migration 20141029181824_remove_issue_statuses_is_default (#18898)....
Jean-Philippe Lang -
r13538:93ced61b2a08
parent child
Show More
@@ -6,7 +6,7 class RemoveIssueStatusesIsDefault < ActiveRecord::Migration
6 6 def down
7 7 add_column :issue_statuses, :is_default, :boolean, :null => false, :default => false
8 8 # Restores the first status as default
9 default_status_id = IssueStatus.order("position").first.pluck(:id)
9 default_status_id = IssueStatus.order("position").pluck(:id).first
10 10 IssueStatus.where(:id => default_status_id).update_all(:is_default => true)
11 11 end
12 12 end
General Comments 0
You need to be logged in to leave comments. Login now