diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20091205124427_add_versions_sharing.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20091205124427_add_versions_sharing.rb b/db/migrate/20091205124427_add_versions_sharing.rb new file mode 100644 index 000000000..3c28e1158 --- /dev/null +++ b/db/migrate/20091205124427_add_versions_sharing.rb @@ -0,0 +1,10 @@ +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 |