set request_for_comment.solved default to false and set all null values in database for that attribute to false
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class SetDefaultForRequestForCommentSolved < ActiveRecord::Migration
|
||||
def change
|
||||
change_column_default :request_for_comments, :solved, false
|
||||
RequestForComment.where(solved: nil).update_all(solved: false)
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user