1
0
Fork 0
This repository has been archived on 2023-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/db/migrate/20181202140310_create_passp...

25 lines
773 B
Ruby

# frozen_string_literal: true
class CreatePassportMaps < ActiveRecord::Migration[5.2]
def change
create_table :passport_maps do |t|
t.timestamps null: false
t.references :passport, null: false,
index: { unique: true }, foreign_key: true
t.string :surname, null: false
t.string :given_name, null: false
t.string :patronymic
t.integer :sex, null: false
t.date :date_of_birth, null: false
t.string :place_of_birth, null: false
t.integer :series, null: false
t.integer :number, null: false
t.text :issued_by, null: false
t.string :unit_code, null: false
t.date :date_of_issue, null: false
end
end
end