026_add_repository_login_and_password.rb 352 Bytes
Newer Older
1
class AddRepositoryLoginAndPassword < ActiveRecord::Migration[4.2]
2 3 4 5 6 7 8 9 10 11
  def self.up
    add_column :repositories, :login, :string, :limit => 60, :default => ""
    add_column :repositories, :password, :string, :limit => 60, :default => ""
  end

  def self.down
    remove_column :repositories, :login
    remove_column :repositories, :password
  end
end