Sha256: 6357ea5bcb76d0cff86ecdced77adbcef142955afba1708484a557978fa584bb
Contents?: true
Size: 268 Bytes
Versions: 68
Compression:
Stored size: 268 Bytes
Contents
class AddSteppedOnColumnToMemberships < ActiveRecord::Migration def change add_column :memberships, :stepped_on, :date Membership.where("is_stepped = ?", true) do |membership| membership.stepped_on = Date.today membership.save end end end
Version data entries
68 entries across 68 versions & 1 rubygems