demarches-normaliennes/db/migrate/20171117165748_change_procedure_presentation_default.rb

6 lines
319 B
Ruby
Raw Normal View History

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