ProcedurePresentation: change default sort value

This commit is contained in:
Simon Lehericey 2017-11-17 18:23:45 +01:00
parent 2b146a6d62
commit d0cad00940
2 changed files with 9 additions and 4 deletions

View file

@ -0,0 +1,5 @@
class ChangeProcedurePresentationDefault < ActiveRecord::Migration[5.0]
def change
change_column_default :procedure_presentations, :sort, from: { "table" => "self", "column" => "id", "order" => "desc" }.to_json, to: { "table" => "notifications", "column" => "notifications", "order" => "desc" }.to_json
end
end