summaryrefslogtreecommitdiffstats
path: root/db/migrate/031_add_repository_root_url.rb
blob: 2269b09f7d4f5f496e8a47ca46e03dd197dd4236 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: false

class AddRepositoryRootUrl < ActiveRecord::Migration[4.2]
  def self.up
    add_column :repositories, :root_url, :string, :limit => 255, :default => ""
  end

  def self.down
    remove_column :repositories, :root_url
  end
end