Mercurial > hg > soundsoftware-site
annotate db/migrate/20110303152903_add_active_column_to_attachments.rb @ 710:7db874627e11 feature_36_js_refactoring
Refactoring author/authorship related JS.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 21 Sep 2011 15:47:56 +0100 |
parents | 82caabe96ad4 |
children |
rev | line source |
---|---|
chris@253 | 1 class AddActiveColumnToAttachments < ActiveRecord::Migration |
chris@253 | 2 def self.up |
chris@253 | 3 add_column :attachments, :active, :boolean |
chris@253 | 4 end |
chris@253 | 5 |
chris@253 | 6 def self.down |
chris@253 | 7 remove_column :attachments, :active |
chris@253 | 8 end |
chris@253 | 9 end |