Sha256: eb9210508f6f99ae9f43e41eadf09b589b03e37acd161cffc106608a8c6cab97
Contents?: true
Size: 580 Bytes
Versions: 1
Compression:
Stored size: 580 Bytes
Contents
class AddTicketTrackingAdapterToProjects < ActiveRecord::Migration def up add_column :projects, :ticket_tracking_adapter, :string, :null => false, :default => "None" rename_column :projects, :unfuddle_id, :ticket_tracking_id Project.reset_column_information Project.all.each do |project| next if project.ticket_tracking_id.blank? project.update_column(:ticket_tracking_adapter, "Unfuddle") end end def down remove_column :projects, :ticket_tracking_adapter rename_column :projects, :ticket_tracking_id, :unfuddle_id end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
houston-core-0.5.0.beta1 | db/migrate/20121222223635_add_ticket_tracking_adapter_to_projects.rb |