mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-30 03:27:52 +08:00
fix hound
This commit is contained in:
parent
849f78b4df
commit
332b6c58da
1 changed files with 0 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
||||||
class CreateSamplesTables < ActiveRecord::Migration
|
class CreateSamplesTables < ActiveRecord::Migration
|
||||||
|
|
||||||
@@def_state = { 'time' => 0,
|
@@def_state = { 'time' => 0,
|
||||||
'start' => 0,
|
'start' => 0,
|
||||||
'length' => 10,
|
'length' => 10,
|
||||||
|
@ -60,7 +59,6 @@ class CreateSamplesTables < ActiveRecord::Migration
|
||||||
User.find_each do |user|
|
User.find_each do |user|
|
||||||
next unless user.organizations
|
next unless user.organizations
|
||||||
user.organizations.find_each do |org|
|
user.organizations.find_each do |org|
|
||||||
|
|
||||||
org_status = @@def_state.deep_dup
|
org_status = @@def_state.deep_dup
|
||||||
next unless org.custom_fields
|
next unless org.custom_fields
|
||||||
org.custom_fields.each_with_index do |_, index|
|
org.custom_fields.each_with_index do |_, index|
|
||||||
|
|
Loading…
Reference in a new issue