mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-10 07:05:57 +08:00
another tab replaced with 2-spaces...
This commit is contained in:
parent
6b0b2b0df7
commit
5dd5f1cc28
1 changed files with 10 additions and 10 deletions
|
@ -1,12 +1,12 @@
|
||||||
class UpdateMyModuleCoordinate < ActiveRecord::Migration
|
class UpdateMyModuleCoordinate < ActiveRecord::Migration
|
||||||
def change
|
def change
|
||||||
MyModule.all.each do |my_module|
|
MyModule.all.each do |my_module|
|
||||||
x = my_module.x
|
x = my_module.x
|
||||||
y = my_module.y
|
y = my_module.y
|
||||||
x *= 32
|
x *= 32
|
||||||
y *= 16
|
y *= 16
|
||||||
my_module.update(x: x)
|
my_module.update(x: x)
|
||||||
my_module.update(y: y)
|
my_module.update(y: y)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue