Sha256: b741fff02acf35e9040f3628a7924278b0334476c4de3f0480a80fecc48e0cb0
Contents?: true
Size: 1014 Bytes
Versions: 2
Compression:
Stored size: 1014 Bytes
Contents
class CreatePwbContacts < ActiveRecord::Migration[5.1] def change create_table :pwb_contacts do |t| t.string :first_name, index: true t.string :last_name, index: true t.string :other_names t.integer :title, default: 0, index: true t.string :primary_phone_number, index: true t.string :other_phone_number t.string :fax t.string :nationality t.string :primary_email, index: true, unique: true t.string :other_email t.string :skype_id t.string :facebook_id t.string :linkedin_id t.string :twitter_id t.string :website t.string :documentation_id, index: true, unique: true t.integer :documentation_type t.integer :user_id t.integer :primary_address_id t.integer :secondary_address_id t.integer :flags, null: false, default: 0 t.json :details, default: {} t.timestamps null: false t.timestamps end add_index :pwb_contacts, [:first_name, :last_name] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pwb-1.4.0 | db/migrate/20170923195321_create_pwb_contacts.rb |
pwb-1.3.0 | db/migrate/20170923195321_create_pwb_contacts.rb |