Class: AddRemovedToPackages

Inherits:
Debci::DB::LEGACY_MIGRATION
  • Object
show all
Defined in:
lib/debci/db/migrations/20210501000000_add_removed_to_packages.rb

Instance Method Summary collapse

Instance Method Details

#downObject



6
7
8
# File 'lib/debci/db/migrations/20210501000000_add_removed_to_packages.rb', line 6

def down
  remove_column :packages, :removed
end

#upObject



2
3
4
# File 'lib/debci/db/migrations/20210501000000_add_removed_to_packages.rb', line 2

def up
  add_column :packages, :removed, :boolean, default: false
end