Sha256: a43ac02e3a537ae3a74cd8ec1cba9382f1a874d8a1861f741eed9370fa826e7d

Contents?: true

Size: 378 Bytes

Versions: 9

Compression:

Stored size: 378 Bytes

Contents

class AddDomainToUsers < ActiveRecord::Migration

    def self.up
        create_table :domains do |t|
            t.column :name, :string, :null => false
            t.column :password, :text, :null => false
        end

        add_column :users, :domain_id, :integer
    end

    def self.down
        remove_column :users, :domain_id
        drop_table :domains
    end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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