Sha256: a6d65f775524c0db062e228ae1adf8c48521fa817a543cc1fa30fb78272784c5

Contents?: true

Size: 289 Bytes

Versions: 9

Compression:

Stored size: 289 Bytes

Contents

class AddVirtualToUsers < ActiveRecord::Migration
    class User < ActiveRecord::Base; end

    def self.up
        add_column :users, :virtual, :boolean, :default => false

        User.find_all.each do |u|
            u.virtual = false
        end
    end

    def self.down
    end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sugoi-mail-0.0.5 db/migrate/022_add_virtual_to_users.rb
sugoi-mail-0.1.0 db/migrate/022_add_virtual_to_users.rb
sugoi-mail-0.1.5 db/migrate/022_add_virtual_to_users.rb
sugoi-mail-0.0.3 db/migrate/022_add_virtual_to_users.rb
sugoi-mail-0.0.0 db/migrate/022_add_virtual_to_users.rb
sugoi-mail-0.0.1 db/migrate/022_add_virtual_to_users.rb
sugoi-mail-0.0.2 db/migrate/022_add_virtual_to_users.rb
sugoi-mail-0.3.2 db/migrate/022_add_virtual_to_users.rb
sugoi-mail-0.3.0 db/migrate/022_add_virtual_to_users.rb