Sha256: 116e3c2243d1cc26d4d07c1b98e5acdc5f8157416ba6c8e17cb1b03583383f9d

Contents?: true

Size: 328 Bytes

Versions: 94

Compression:

Stored size: 328 Bytes

Contents

class AddActiveToCountries < ActiveRecord::Migration
  def up
    add_column :countries, :active_shipping, :boolean, :default => false
    add_column :countries, :active_billing, :boolean, :default => false
  end

  def down
    remove_column :countries, :active_shipping
    remove_column :countries, :active_billing
  end
end

Version data entries

94 entries across 94 versions & 2 rubygems

Version Path
piggybak-0.6.24 db/migrate/20120107135459_add_active_to_countries.rb
piggybak-0.6.23 db/migrate/20120107135459_add_active_to_countries.rb
piggybak-0.6.22 db/migrate/20120107135459_add_active_to_countries.rb
piggybak-0.6.21 db/migrate/20120107135459_add_active_to_countries.rb
piggybak-0.6.20 db/migrate/20120107135459_add_active_to_countries.rb
piggybak-0.6.19 db/migrate/20120107135459_add_active_to_countries.rb
piggybak-0.6.18 db/migrate/20120107135459_add_active_to_countries.rb
piggybak-0.6.17 db/migrate/20120107135459_add_active_to_countries.rb
piggybak-0.6.16 db/migrate/20120107135459_add_active_to_countries.rb
piggybak-0.6.15 db/migrate/20120107135459_add_active_to_countries.rb
piggybak-0.6.13 db/migrate/20120107135459_add_active_to_countries.rb
piggybak-0.6.12 db/migrate/20120107135459_add_active_to_countries.rb
piggybak-0.6.11 db/migrate/20120107135459_add_active_to_countries.rb
piggybak-0.6.10 db/migrate/20120107135459_add_active_to_countries.rb
piggybak-0.6.9 db/migrate/20120107135459_add_active_to_countries.rb
piggybak-0.6.8 db/migrate/20120107135459_add_active_to_countries.rb
piggybak-0.6.7 db/migrate/20120107135459_add_active_to_countries.rb
piggybak-0.6.6 db/migrate/20120107135459_add_active_to_countries.rb
piggybak-0.6.5 db/migrate/20120107135459_add_active_to_countries.rb
piggybak-0.6.4 db/migrate/20120107135459_add_active_to_countries.rb