20140408082759_add_is_private_to_attachments.rb

Jacek Grzybowski, 2014-04-08 11:18

Download (235 Bytes)

 
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