Individual: add a second birthdate which is a date

This commit is contained in:
simon lehericey 2018-04-03 11:43:25 +02:00
parent 0bf389b849
commit 0093db18a1
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddSecondBirthdateColumnToIndividual < ActiveRecord::Migration[5.2]
def change
add_column :individuals, :second_birthdate, :date
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2018_03_23_101837) do
ActiveRecord::Schema.define(version: 2018_04_03_094135) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -366,6 +366,7 @@ ActiveRecord::Schema.define(version: 2018_03_23_101837) do
t.string "gender"
t.datetime "created_at"
t.datetime "updated_at"
t.date "second_birthdate"
t.index ["dossier_id"], name: "index_individuals_on_dossier_id"
end