Sha256: dfb9051ac494f415ed799fc5ebf89e86afb7bede5b1920ea2df98f7562c1a0d4
Contents?: true
Size: 811 Bytes
Versions: 1
Compression:
Stored size: 811 Bytes
Contents
# spt 2017 - superseeded by contacts class CreatePwbClients < ActiveRecord::Migration[5.0] def change create_table :pwb_clients do |t| t.string :first_names t.string :last_names t.string :client_title t.string :phone_number_primary t.string :phone_number_other t.string :fax t.string :nationality t.string :email t.string :skype t.string :documentation_id t.integer :documentation_type t.integer :user_id t.integer :address_id t.integer :flags, null: false, default: 0 t.json :details, default: {} t.timestamps null: false end add_index :pwb_clients, :documentation_id, unique: true add_index :pwb_clients, [:first_names, :last_names] add_index :pwb_clients, :email, unique: true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pwb-1.4.0 | db/migrate/20161128221919_create_pwb_clients.rb |