Sha256: cbc3a397397ef2d5557162e19aef0cea62f4c46e44425f111ecaf33659a79892

Contents?: true

Size: 169 Bytes

Versions: 4

Compression:

Stored size: 169 Bytes

Contents

class AddProgressToGoals < ActiveRecord::Migration
  def change
    add_column :flyboy_goals, :progress, :integer
    Flyboy::Goal.all.map(&:update_progress!)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
flyboy-1.1.0 db/migrate/20150415130939_add_progress_to_goals.rb
flyboy-1.0.7 db/migrate/20150415130939_add_progress_to_goals.rb
flyboy-1.0.6 db/migrate/20150415130939_add_progress_to_goals.rb
flyboy-1.0.5 db/migrate/20150415130939_add_progress_to_goals.rb