Class: ChangeRepositoriesColumn

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

Class Method Summary collapse

Class Method Details

.downObject



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

def self.down
  remove_column :repositories, :priority
  add_column :repositories, :favorite, :boolean
end

.upObject



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

def self.up
  remove_column :repositories, :favorite
  add_column :repositories, :priority, :integer
end