annotate db/migrate/20110207142856_add_ext_rep_to_repositories.rb @ 1600:ed9c467ef922 dockerise

Add hggit extension
author Chris Cannam
date Wed, 23 Aug 2017 11:32:50 +0100
parents 11661511fc20
children
rev   line source
luis@202 1 class AddExtRepToRepositories < ActiveRecord::Migration
luis@202 2 def self.up
luis@202 3 add_column :repositories, :is_external, :bool
luis@202 4 add_column :repositories, :external_url, :string
luis@202 5 end
luis@202 6
luis@202 7 def self.down
luis@202 8 remove_column :repositories, :is_external
luis@202 9 remove_column :repositories, :external_url
luis@202 10 end
luis@202 11 end