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

9 lines
195 B
Ruby
Raw Normal View History

class DBremovePieceJustificativeEmpty < ActiveRecord::Migration
2018-03-06 13:44:29 +01:00
class PieceJustificative < ApplicationRecord
end
def change
PieceJustificative.where(content: nil).delete_all
end
end