Sha256: b0af7ace07d22b28d09d2e97942d9e8312a2a5a2cbf5c4aedb591518f8600eb9

Contents?: true

Size: 1.57 KB

Versions: 8

Compression:

Stored size: 1.57 KB

Contents

class CreateAgents < ActiveRecord::Migration[4.2]
  def change
    create_table :agents do |t|
      t.string :last_name
      t.string :middle_name
      t.string :first_name
      t.string :last_name_transcription
      t.string :middle_name_transcription
      t.string :first_name_transcription
      t.string :corporate_name
      t.string :corporate_name_transcription
      t.string :full_name
      t.text :full_name_transcription
      t.text :full_name_alternative
      t.timestamps
      t.datetime :deleted_at
      t.string :zip_code_1
      t.string :zip_code_2
      t.text :address_1
      t.text :address_2
      t.text :address_1_note
      t.text :address_2_note
      t.string :telephone_number_1
      t.string :telephone_number_2
      t.string :fax_number_1
      t.string :fax_number_2
      t.text :other_designation
      t.text :place
      t.string :postal_code
      t.text :street
      t.text :locality
      t.text :region
      t.datetime :date_of_birth
      t.datetime :date_of_death
      t.integer :language_id, :default => 1, :null => false
      t.integer :country_id, :default => 1, :null => false
      t.integer :agent_type_id, :default => 1, :null => false
      t.integer :lock_version, :default => 0, :null => false
      t.text :note
      t.integer :required_role_id, :default => 1, :null => false
      t.integer :required_score, :default => 0, :null => false
      t.text :email
      t.text :url
    end
    add_index :agents, :language_id
    add_index :agents, :country_id
    add_index :agents, :required_role_id
    add_index :agents, :full_name
  end
end

Version data entries

8 entries across 8 versions & 5 rubygems

Version Path
enju_purchase_request-0.3.2 spec/dummy/db/migrate/001_create_agents.rb
enju_purchase_request-0.3.1 spec/dummy/db/migrate/001_create_agents.rb
enju_loc-0.3.0 spec/dummy/db/migrate/001_create_agents.rb
enju_search_log-0.3.0.beta.1 spec/dummy/db/migrate/001_create_agents.rb
enju_purchase_request-0.3.0.beta.1 spec/dummy/db/migrate/001_create_agents.rb
enju_loc-0.3.0.beta.1 spec/dummy/db/migrate/001_create_agents.rb
enju_leaf-1.3.0.beta.2 spec/dummy/db/migrate/001_create_agents.rb
enju_manifestation_viewer-0.3.0.beta.1 spec/dummy/db/migrate/001_create_agents.rb