X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/baf9ff0ec39c13f52ee8d4f087641dc5fcc9c53b..fcc68b4dc198b7cb0cf93467d96038b0844675fe:/vendor/plugins/geokit/test/schema.rb diff --git a/vendor/plugins/geokit/test/schema.rb b/vendor/plugins/geokit/test/schema.rb new file mode 100644 index 0000000..ad69e08 --- /dev/null +++ b/vendor/plugins/geokit/test/schema.rb @@ -0,0 +1,31 @@ +ActiveRecord::Schema.define(:version => 0) do + create_table :companies, :force => true do |t| + t.column :name, :string + end + + create_table :locations, :force => true do |t| + t.column :company_id, :integer, :default => 0, :null => false + t.column :street, :string, :limit => 60 + t.column :city, :string, :limit => 60 + t.column :state, :string, :limit => 2 + t.column :postal_code, :string, :limit => 16 + t.column :lat, :decimal, :precision => 15, :scale => 10 + t.column :lng, :decimal, :precision => 15, :scale => 10 + end + + create_table :custom_locations, :force => true do |t| + t.column :company_id, :integer, :default => 0, :null => false + t.column :street, :string, :limit => 60 + t.column :city, :string, :limit => 60 + t.column :state, :string, :limit => 2 + t.column :postal_code, :string, :limit => 16 + t.column :latitude, :decimal, :precision => 15, :scale => 10 + t.column :longitude, :decimal, :precision => 15, :scale => 10 + end + + create_table :stores, :force=> true do |t| + t.column :address, :string + t.column :lat, :decimal, :precision => 15, :scale => 10 + t.column :lng, :decimal, :precision => 15, :scale => 10 + end +end \ No newline at end of file