Mercurial > hg > soundsoftware-site
annotate db/migrate/20120930112914_add_journals_private_notes.rb @ 1212:1186340b4ad4 redmine-2.2-integration
Renamed a named_scope (deprecated) to scope.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Thu, 07 Mar 2013 13:05:22 +0000 |
parents | 433d4f72a19b |
children |
rev | line source |
---|---|
Chris@1115 | 1 class AddJournalsPrivateNotes < ActiveRecord::Migration |
Chris@1115 | 2 def up |
Chris@1115 | 3 add_column :journals, :private_notes, :boolean, :default => false, :null => false |
Chris@1115 | 4 end |
Chris@1115 | 5 |
Chris@1115 | 6 def down |
Chris@1115 | 7 remove_column :journals, :private_notes |
Chris@1115 | 8 end |
Chris@1115 | 9 end |