Sha256: b7418620a62ae4577d573bd21df86ff74728a9dc9e93eea1177f1617668ae478

Contents?: true

Size: 448 Bytes

Versions: 4

Compression:

Stored size: 448 Bytes

Contents

#------------------------------------------------------------------------
# Add the "active" column to addresses
#------------------------------------------------------------------------

class AddActiveToAddresses < ActiveRecord::Migration
    def self.up
        add_column :addresses, :active, :boolean, :default => true
        Address.update_all "active = true"
    end

    def self.down
        remove_column :addresses, :active
    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sugoi-mail-0.0.3 db/migrate/011_add_active_to_addresses.rb
sugoi-mail-0.0.2 db/migrate/011_add_active_to_addresses.rb
sugoi-mail-0.0.1 db/migrate/011_add_active_to_addresses.rb
sugoi-mail-0.0.0 db/migrate/011_add_active_to_addresses.rb