Project

General

Profile

Feature #16561 » 20140408082759_add_is_private_to_attachments.rb

Jacek Grzybowski, 2014-04-08 11:18

 
1
class AddIsPrivateToAttachments < ActiveRecord::Migration
2
  def self.up
3
    add_column :attachments, :is_private, :boolean, :default => false, :null => false
4
  end
5

    
6
  def self.down
7
    remove_column :attachments, :is_private
8
  end
9
end
(1-1/2)