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.24.15 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.24.14 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.24.13 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.24.12 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.24.11 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.24.10 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.24.9 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.24.8 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.24.7 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.24.6 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.24.5 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.24.4 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.24.3 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.24.2 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.24.1 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.24.0 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.23.7 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.23.6 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.23.5 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb
six-updater-web-0.23.4 lib/six-updater-web/db/migrate/20100425143140_change_repositories_column.rb