Update for MySQL compatibility

This commit is contained in:
Erik Michaels-Ober 2011-03-28 19:24:44 -07:00
parent ca6a961097
commit bec67a6af4
3 changed files with 5 additions and 6 deletions

View File

@ -1,6 +1,6 @@
development: development:
adapter: postgresql adapter: postgresql
database: adopt-a-hydrant database: adopt_a_hydrant
username: postgres username: postgres
password: password:

View File

@ -3,8 +3,8 @@ class CreateHydrants < ActiveRecord::Migration
create_table :hydrants do |t| create_table :hydrants do |t|
t.timestamps t.timestamps
t.string :name t.string :name
t.decimal :lat, :null => false t.decimal :lat, :null => false, :precision => 16, :scale => 14
t.decimal :lng, :null => false t.decimal :lng, :null => false, :precision => 17, :scale => 14
t.integer :city_id t.integer :city_id
t.integer :user_id t.integer :user_id
end end

View File

@ -16,8 +16,8 @@ ActiveRecord::Schema.define(:version => 20110223180521) do
t.datetime "created_at" t.datetime "created_at"
t.datetime "updated_at" t.datetime "updated_at"
t.string "name" t.string "name"
t.decimal "lat", :null => false t.decimal "lat", :precision => 16, :scale => 14, :null => false
t.decimal "lng", :null => false t.decimal "lng", :precision => 17, :scale => 14, :null => false
t.integer "city_id" t.integer "city_id"
t.integer "user_id" t.integer "user_id"
end end
@ -33,7 +33,6 @@ ActiveRecord::Schema.define(:version => 20110223180521) do
t.string "voice_number" t.string "voice_number"
t.string "sms_number" t.string "sms_number"
t.string "encrypted_password", :limit => 128, :default => "", :null => false t.string "encrypted_password", :limit => 128, :default => "", :null => false
t.string "password_salt", :default => "", :null => false
t.string "reset_password_token" t.string "reset_password_token"
t.string "remember_token" t.string "remember_token"
t.datetime "remember_created_at" t.datetime "remember_created_at"