# HG changeset patch # User Chris Cannam # Date 1299166243 0 # Node ID 82caabe96ad4bf69396f7bfd4d065bd5114b2cb3 # Parent 7cec015f07ce4a03f4928f1dcf11dc26da6369ac * Add "active" column to attachments table (file downloads) in db diff -r 7cec015f07ce -r 82caabe96ad4 db/migrate/20110303152903_add_active_column_to_attachments.rb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/db/migrate/20110303152903_add_active_column_to_attachments.rb Thu Mar 03 15:30:43 2011 +0000 @@ -0,0 +1,9 @@ +class AddActiveColumnToAttachments < ActiveRecord::Migration + def self.up + add_column :attachments, :active, :boolean + end + + def self.down + remove_column :attachments, :active + end +end