1
0
Fork 0

Add the new StatType in the migration

This commit is contained in:
Andrew Tomaka 2015-11-09 12:23:04 -05:00
parent c6a42c7c8f
commit e9f76f2d62

View file

@ -3,6 +3,7 @@ class AddCostStatToCard < ActiveRecord::Migration
add_column :cards, :cost_stat_id, :integer
PaperTrail.whodunnit = 1
StatType.create(name: 'Cost', description: 'Cost')
Card.all.each do |c|
c.cost_stat = Stat.new(stat_type_id: 4)
c.save