1
0
Fork 0

Fix code style

This commit is contained in:
Alex Kotov 2018-11-30 09:20:02 +05:00
parent aa9062a5b9
commit e927bf113a
No known key found for this signature in database
GPG key ID: 4E831250F47DE154
2 changed files with 5 additions and 3 deletions

View file

@ -1,7 +1,7 @@
# frozen_string_literal: true # frozen_string_literal: true
class PassportsController < ApplicationController class PassportsController < ApplicationController
before_action :set_passport, except: %i[index new create] before_action :set_passport, except: %i[index new]
# GET /passports # GET /passports
def index def index

View file

@ -2,7 +2,9 @@
class ChangeTypeForIssuedByOfPassports < ActiveRecord::Migration[5.2] class ChangeTypeForIssuedByOfPassports < ActiveRecord::Migration[5.2]
def change def change
remove_column :passports, :issued_by, :string, null: false change_table :passports, bulk: true do |t|
add_column :passports, :issued_by, :text, null: false t.remove :issued_by # rubocop:disable Rails/ReversibleMigration
t.text :issued_by, null: false
end
end end
end end