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
class PassportsController < ApplicationController
before_action :set_passport, except: %i[index new create]
before_action :set_passport, except: %i[index new]
# GET /passports
def index

View File

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