1 ActiveRecord::Schema.define(:version => 0) do
2 create_table :companies, :force => true do |t|
3 t.column :name, :string
6 create_table :locations, :force => true do |t|
7 t.column :company_id, :integer, :default => 0, :null => false
8 t.column :street, :string, :limit => 60
9 t.column :city, :string, :limit => 60
10 t.column :state, :string, :limit => 2
11 t.column :postal_code, :string, :limit => 16
12 t.column :lat, :decimal, :precision => 15, :scale => 10
13 t.column :lng, :decimal, :precision => 15, :scale => 10
16 create_table :custom_locations, :force => true do |t|
17 t.column :company_id, :integer, :default => 0, :null => false
18 t.column :street, :string, :limit => 60
19 t.column :city, :string, :limit => 60
20 t.column :state, :string, :limit => 2
21 t.column :postal_code, :string, :limit => 16
22 t.column :latitude, :decimal, :precision => 15, :scale => 10
23 t.column :longitude, :decimal, :precision => 15, :scale => 10
26 create_table :stores, :force=> true do |t|
27 t.column :address, :string
28 t.column :lat, :decimal, :precision => 15, :scale => 10
29 t.column :lng, :decimal, :precision => 15, :scale => 10