Sha256: ce603edb0ab31edf095b981344e551fe3d56257e880039e2b94d2959d51f9a19

Contents?: true

Size: 290 Bytes

Versions: 94

Compression:

Stored size: 290 Bytes

Contents

class ChangeRepositoriesColumn < ActiveRecord::Migration
  def self.up
    remove_column :repositories, :favorite
    add_column :repositories, :priority, :integer
  end

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

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
six-updater-web-0.20.3 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.20.2 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.20.1 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.20.0 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.19.7 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.19.6 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.19.5 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.19.4 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.19.3 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.19.2 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.19.1 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.19.0 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.18.2 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.18.1 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.18.0 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.17.7 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.17.6 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.17.5 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.17.4 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.17.3 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb