Sha256: d66d47575550fe5e1d21e1f709b03a71187a481f9a044f1a0283abfe14925b05
Contents?: true
Size: 376 Bytes
Versions: 1
Compression:
Stored size: 376 Bytes
Contents
class AddFirstReleaseAtToTickets < ActiveRecord::Migration def up add_column :tickets, :first_release_at, :timestamp Ticket.all.each do |ticket| first_release = ticket.releases.last ticket.update_column(:first_release_at, first_release.created_at) if first_release end end def down remove_column :tickets, :first_release_at end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
houston-core-0.5.0.beta1 | db/migrate/20131004185618_add_first_release_at_to_tickets.rb |