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.17.2 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.17.1 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.17.0 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.16.3 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.16.2 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.16.0 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.15.4 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.15.3 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.15.2 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.15.1 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.14.12 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.14.10 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.14.9 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.14.8 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.14.7 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.14.6 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.14.5 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.14.4 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.14.3 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.14.2 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb