In my seeds.rb file I would like to have the following structure:
# begin of variables initialization
groups = ...
# end of variables initializa
Wrap your initial calls in a function and call that function at the end:
# begin of variables initialization
groups = ...
# end of variables initialization
def to_be_run_later
check_data
save_data_in_database
end
# functions go here
def check_data
...
end
def save_data_in_database
...
end
to_be_run_later