Displaying 1 result from an estimated 1 matches for "adddefaultvaluestostatus".
Did you mean:
adddefaultvaluestostatuses
2010 Mar 04
25
how to share variables in data migrations (up/down)
hi there,
How do we share variables in a given data migration?
For example,
the code below fails to work because "statuses" don''t seem to be in
scope for both up and down.
class AddDefaultValuesToStatuses < ActiveRecord::Migration
statuses = [
{
''details'' => ''details'',
},
{
''fitting_profile'' => ''fitting profile'',
},
{
''live'...