mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 17:51:13 +08:00
tabs replaced with 2-spaces
This commit is contained in:
parent
a6d39762db
commit
6b0b2b0df7
1 changed files with 9 additions and 9 deletions
|
@ -1,12 +1,12 @@
|
|||
class UpdateMyModuleCoordinate < ActiveRecord::Migration
|
||||
def change
|
||||
MyModule.all.each do |my_module|
|
||||
x = my_module.x
|
||||
y = my_module.y
|
||||
x = x * 32
|
||||
y = y * 16
|
||||
my_module.update(x: x)
|
||||
my_module.update(y: y)
|
||||
def change
|
||||
MyModule.all.each do |my_module|
|
||||
x = my_module.x
|
||||
y = my_module.y
|
||||
x *= 32
|
||||
y *= 16
|
||||
my_module.update(x: x)
|
||||
my_module.update(y: y)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue