Fix code style
This commit is contained in:
parent
aa9062a5b9
commit
e927bf113a
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Reference in a new issue