summaryrefslogtreecommitdiffstats
path: root/db/migrate/20091205124427_add_versions_sharing.rb
blob: 815f9fcdaf031ee3ad82e9ae637c11c3db8890ed (plain)
1
2
3
4
5
6
7
8
9
10
class AddVersionsSharing < ActiveRecord::Migration[4.2]
  def self.up
    add_column :versions, :sharing, :string, :default => 'none', :null => false
    add_index :versions, :sharing
  end

  def self.down
    remove_column :versions, :sharing
  end
end