Sha256: df850727365882827f1d625c0bac13fc707a0a0201007dd428239a2e1a029a5e

Contents?: true

Size: 583 Bytes

Versions: 7

Compression:

Stored size: 583 Bytes

Contents

class CreateContacts < ActiveRecord::Migration
  def self.up
    create_table :contacts do |t|
      t.string :title
      t.string :salutation
      t.string :firstname
      t.string :lastname
      t.string :email
      t.string :phone
      t.string :mobile
      t.string :address
      t.string :zip
      t.string :city
      t.string :country
      t.string :organisation
      t.string :email_sha1
      t.string :email_salt
      t.boolean :verified, :default => false
      t.timestamps
      t.userstamps
    end
  end

  def self.down
    drop_table :contacts
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
alchemy_crm-2.0.5 db/migrate/20100708220534_create_contacts.rb
alchemy_crm-2.0.4.1 db/migrate/20100708220534_create_contacts.rb
alchemy_crm-2.1.0a db/migrate/20100708220534_create_contacts.rb
alchemy_crm-2.0.3 db/migrate/20100708220534_create_contacts.rb
alchemy_crm-2.0.2 db/migrate/20100708220534_create_contacts.rb
alchemy_crm-2.0.1 db/migrate/20100708220534_create_contacts.rb
alchemy_crm-2.0.0 db/migrate/20100708220534_create_contacts.rb