To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / db / migrate / 20091205124427_add_versions_sharing.rb @ 442:753f1380d6bc

History | View | Annotate | Download (250 Bytes)

1
class AddVersionsSharing < ActiveRecord::Migration
2
  def self.up
3
    add_column :versions, :sharing, :string, :default => 'none', :null => false
4
    add_index :versions, :sharing
5
  end
6

    
7
  def self.down
8
    remove_column :versions, :sharing
9
  end
10
end