Class: ChangeColumnsRepositories

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/six-updater-web/db/migrate/20090928163558_change_columns_repositories.rb

Class Method Summary collapse

Class Method Details

.downObject



7
8
9
10
# File 'lib/six-updater-web/db/migrate/20090928163558_change_columns_repositories.rb', line 7

def self.down
  remove_column :repositories, :disabled
  remove_column :repositories, :favorite
end

.upObject



2
3
4
5
# File 'lib/six-updater-web/db/migrate/20090928163558_change_columns_repositories.rb', line 2

def self.up
  add_column :repositories, :disabled, :boolean
  add_column :repositories, :favorite, :boolean
end