blob: 73e21e9d9543bc3fbae9ef84b81f6a24f781e23e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
class AddSlotsToPackages < ActiveRecord::Migration
def change
add_column :packages, :slot, :string
Package.find_each do |package|
if package.slot.nil?
package.slot = '*'
package.save!
end
end
end
end
|