Adding gmaps

This commit is contained in:
2013-10-09 05:14:30 -07:00
parent ebc696814e
commit 2b644e0b74
23 changed files with 1758 additions and 36 deletions

View File

@@ -0,0 +1,7 @@
class AddLatLongGmapToSpaces < ActiveRecord::Migration
def change
add_column :spaces, :latitude, :float
add_column :spaces, :longitude, :float
add_column :spaces, :gmaps, :boolean
end
end

View File

@@ -0,0 +1,6 @@
class AddCityStateToSpaces < ActiveRecord::Migration
def change
add_column :spaces, :city, :string
add_column :spaces, :state, :string
end
end

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20131009051102) do
ActiveRecord::Schema.define(version: 20131009120246) do
create_table "spaces", force: true do |t|
t.string "name"
@@ -24,6 +24,11 @@ ActiveRecord::Schema.define(version: 20131009051102) do
t.text "description"
t.datetime "created_at"
t.datetime "updated_at"
t.float "latitude"
t.float "longitude"
t.boolean "gmaps"
t.string "city"
t.string "state"
end
create_table "versions", force: true do |t|