Adding gmaps
This commit is contained in:
7
db/migrate/20131009103919_add_lat_long_gmap_to_spaces.rb
Normal file
7
db/migrate/20131009103919_add_lat_long_gmap_to_spaces.rb
Normal 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
|
||||
6
db/migrate/20131009120246_add_city_state_to_spaces.rb
Normal file
6
db/migrate/20131009120246_add_city_state_to_spaces.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class AddCityStateToSpaces < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :spaces, :city, :string
|
||||
add_column :spaces, :state, :string
|
||||
end
|
||||
end
|
||||
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user