socialforge/db/migrate/20091205124427_add_versions...

11 lines
250 B
Ruby
Raw Normal View History

2013-08-01 10:33:49 +08:00
class AddVersionsSharing < ActiveRecord::Migration
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