changeset 202:11661511fc20 feature_72

migration to add external repositories columns to repositories table.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Mon, 07 Feb 2011 16:22:23 +0000
parents 61d8fba252fd
children 6849e7b210c7
files db/migrate/20110207142856_add_ext_rep_to_repositories.rb
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/migrate/20110207142856_add_ext_rep_to_repositories.rb	Mon Feb 07 16:22:23 2011 +0000
@@ -0,0 +1,11 @@
+class AddExtRepToRepositories < ActiveRecord::Migration
+  def self.up
+    add_column :repositories, :is_external, :bool
+    add_column :repositories, :external_url, :string
+  end
+
+  def self.down
+    remove_column :repositories, :is_external
+    remove_column :repositories, :external_url
+  end
+end