Migration: add mandatory column to type de piece justificative

This commit is contained in:
Simon Lehericey 2017-03-29 14:30:29 +02:00
parent 955552b0d2
commit a907b9c062
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddMandatoryColumnToTypesDePieceJustificative < ActiveRecord::Migration[5.0]
def change
add_column :types_de_piece_justificative, :mandatory, :boolean, default: false
end
end

View file

@ -10,7 +10,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20170313140834) do ActiveRecord::Schema.define(version: 20170328142700) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
@ -403,6 +403,7 @@ ActiveRecord::Schema.define(version: 20170313140834) do
t.integer "procedure_id" t.integer "procedure_id"
t.integer "order_place" t.integer "order_place"
t.string "lien_demarche" t.string "lien_demarche"
t.boolean "mandatory", default: false
end end
create_table "users", force: :cascade do |t| create_table "users", force: :cascade do |t|