Sha256: baf16019b40e3095865c623184be3de33e2ada110281e1e8d70fe7e92d118c33
Contents?: true
Size: 997 Bytes
Versions: 35
Compression:
Stored size: 997 Bytes
Contents
class CreateComeeCoreAgents < ActiveRecord::Migration[7.1] def change create_table :comee_core_agents do |t| t.string :name, null: false t.string :address_line1 t.string :street t.string :city t.string :state t.references :country, null: false, index: {name: "country_on_cca_indx"}, foreign_key: {to_table: :comee_core_lookups} t.string :postal_code t.string :email, null: false t.string :telephone, null: false t.timestamps end create_table :comee_core_clients_agents, id: false do |t| t.references :client, null: false, index: {name: "client_on_ccca_indx"}, foreign_key: {to_table: :comee_core_clients} t.references :agent, null: false, index: {name: "agent_on_ccca_indx"}, foreign_key: {to_table: :comee_core_agents} end end end
Version data entries
35 entries across 35 versions & 1 rubygems