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
|
class UpdateSettings6 < ActiveRecord::Migration
|
||||||
def up
|
def up
|
||||||
if Setting.column_names.include?('state')
|
return if !Setting.column_names.include?('state')
|
||||||
rename_column :settings, :state, :state_current
|
rename_column :settings, :state, :state_current
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue