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

25 lines
773 B
Ruby
Raw Normal View History

2018-12-02 09:16:16 -05:00
# 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