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.
2018-12-02 14:41:48 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class RemoveMappingFromPassports < ActiveRecord::Migration[5.2]
|
|
|
|
def change
|
2018-12-02 15:03:09 +00:00
|
|
|
# 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
|
2018-12-02 14:41:48 +00:00
|
|
|
end
|
|
|
|
end
|