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/20181202142918_remove_mapping_from_passports.rb
2018-12-02 20:00:00 +05:00

17 lines
863 B
Ruby

# frozen_string_literal: true
class RemoveMappingFromPassports < ActiveRecord::Migration[5.2]
def change
remove_column :passports, :surname, :string, null: false
remove_column :passports, :given_name, :string, null: false
remove_column :passports, :patronymic, :string
remove_column :passports, :sex, :integer, null: false
remove_column :passports, :date_of_birth, :date, null: false
remove_column :passports, :place_of_birth, :string, null: false
remove_column :passports, :series, :integer, null: false
remove_column :passports, :number, :integer, null: false
remove_column :passports, :issued_by, :text, null: false
remove_column :passports, :unit_code, :string, null: false
remove_column :passports, :date_of_issue, :date, null: false
end
end