Migration : Remove All PieceJustificative empty in database
This commit is contained in:
parent
bb79aca58a
commit
5ff7bc0075
2 changed files with 9 additions and 1 deletions
|
@ -0,0 +1,8 @@
|
|||
class DBremovePieceJustificativeEmpty < ActiveRecord::Migration
|
||||
class PieceJustificative < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def change
|
||||
PieceJustificative.where(content: nil).delete_all
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20160315101245) do
|
||||
ActiveRecord::Schema.define(version: 20160317135217) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue