1
0
Fork 0

Change type of Passport#issued_by

This commit is contained in:
Alex Kotov 2018-11-30 09:11:13 +05:00
parent 8604829a56
commit 732c3b182f
No known key found for this signature in database
GPG Key ID: 4E831250F47DE154
2 changed files with 10 additions and 2 deletions

View File

@ -0,0 +1,8 @@
# frozen_string_literal: true
class ChangeTypeForIssuedByOfPassports < ActiveRecord::Migration[5.2]
def change
remove_column :passports, :issued_by, :string, null: false
add_column :passports, :issued_by, :text, null: false
end
end

View File

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2018_11_30_024918) do
ActiveRecord::Schema.define(version: 2018_11_30_040846) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -62,9 +62,9 @@ ActiveRecord::Schema.define(version: 2018_11_30_024918) do
t.string "place_of_birth", null: false
t.integer "series", null: false
t.integer "number", null: false
t.string "issued_by", null: false
t.string "unit_code", null: false
t.date "date_of_issue", null: false
t.text "issued_by", null: false
end
create_table "roles", force: :cascade do |t|