All pastes #790167 Raw Edit

Miscellany

public ruby v1 · immutable
·published 2007-11-20 03:46 UTC
rendered paste body
  def create_load_table(table_name)    begin      ActiveRecord::Schema.define do        create_table "#{table_name}" do | t |          t.column :sourceid,   :number          t.column :name,       :string          t.column :agent,      :number          t.column :phone,      :string          t.column :phone1,     :string          t.column :phone2,     :string          t.column :phone3,     :string          t.column :phonedesc1, :string          t.column :phonedesc2, :string          t.column :phonedesc3, :string          t.column :timezone,   :string          t.column :comments,   :string        end      end      return true    rescue Exception => err      return err.message    end  end