Applied rubocop.
This commit is contained in:
parent
9522047482
commit
bef4c843c8
1 changed files with 2 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
|||
class UpdateSettings6 < ActiveRecord::Migration
|
||||
def up
|
||||
if Setting.column_names.include?('state')
|
||||
rename_column :settings, :state, :state_current
|
||||
end
|
||||
return if !Setting.column_names.include?('state')
|
||||
rename_column :settings, :state, :state_current
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue