demarches-normaliennes/db/migrate/20190917151652_make_path_nonnull.rb
2024-08-22 09:26:48 +02:00

8 lines
231 B
Ruby

# frozen_string_literal: true
class MakePathNonnull < ActiveRecord::Migration[5.2]
def change
change_column_null :procedures, :path, false
add_index :procedures, [:path, :archived_at, :hidden_at], unique: true
end
end