demarches-normaliennes/db/migrate/20160317135217_d_bremove_piece_justificative_empty.rb
2018-03-06 17:18:44 +01:00

8 lines
195 B
Ruby

class DBremovePieceJustificativeEmpty < ActiveRecord::Migration
class PieceJustificative < ApplicationRecord
end
def change
PieceJustificative.where(content: nil).delete_all
end
end