demarches-normaliennes/db/migrate/20160317135217_d_bremove_piece_justificative_empty.rb

8 lines
196 B
Ruby

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