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:03:09 +05:00

21 lines
555 B
Ruby

# frozen_string_literal: true
class RemoveMappingFromPassports < ActiveRecord::Migration[5.2]
def change
# rubocop:disable Rails/ReversibleMigration
change_table :passports, bulk: true do |t|
t.remove :surname
t.remove :given_name
t.remove :patronymic
t.remove :sex
t.remove :date_of_birth
t.remove :place_of_birth
t.remove :series
t.remove :number
t.remove :issued_by
t.remove :unit_code
t.remove :date_of_issue
end
# rubocop:enable Rails/ReversibleMigration
end
end