Permalink
Browse files

Removing NJ providers from the seed for now.

  • Loading branch information...
1 parent a7b5b5d commit c66b78ea270b2aa3bbd6f4d3430af26cbc34ba97 @jpettersson committed Feb 9, 2013
Showing with 43 additions and 40 deletions.
  1. +43 −40 db/seeds.rb
View
@@ -17,34 +17,34 @@
:latitude => '40.784909',
:url => 'http://www.lipower.org/',
:slug => 'long-island'
- },
- {
- :code => 'PSEG',
- :name => "PSEG",
- :provider_type => 'electricity',
- :longitude => '-74.233246',
- :latitude => '40.702609',
- :url => 'http://www.pseg.com/',
- :slug => 'new-jersey'
- },
- {
- :code => 'JCPL',
- :name => "JCP&L",
- :provider_type => 'electricity',
- :longitude => '-74.451819',
- :latitude => '40.486216',
- :url => 'https://www.firstenergycorp.com/content/customer/jersey_central_power_light.html',
- :slug => 'jcpl'
- },
- {
- :code => 'OrangeRockland',
- :name => "Orange & Rockland",
- :provider_type => 'electricity',
- :longitude => '-74.10553',
- :latitude => '41.224324',
- :url => 'http://www.oru.com/',
- :slug => 'orange-and-rockland'
}
+ # {
+ # :code => 'PSEG',
+ # :name => "PSEG",
+ # :provider_type => 'electricity',
+ # :longitude => '-74.233246',
+ # :latitude => '40.702609',
+ # :url => 'http://www.pseg.com/',
+ # :slug => 'new-jersey'
+ # },
+ # {
+ # :code => 'JCPL',
+ # :name => "JCP&L",
+ # :provider_type => 'electricity',
+ # :longitude => '-74.451819',
+ # :latitude => '40.486216',
+ # :url => 'https://www.firstenergycorp.com/content/customer/jersey_central_power_light.html',
+ # :slug => 'jcpl'
+ # },
+ # {
+ # :code => 'OrangeRockland',
+ # :name => "Orange & Rockland",
+ # :provider_type => 'electricity',
+ # :longitude => '-74.10553',
+ # :latitude => '41.224324',
+ # :url => 'http://www.oru.com/',
+ # :slug => 'orange-and-rockland'
+ # }
].each do |p|
unless provider = Provider.find_by_name(p[:name])
provider = Provider.create!(p)
@@ -70,18 +70,18 @@
:providers => [
Provider.find_by_code('LIPA')
]
- },
- {
- :name => 'New Jersey',
- :longitude => '-73.381805',
- :latitude => '40.784909',
- :slug => 'new-jersey',
- :providers => [
- Provider.find_by_code('PSEG'),
- Provider.find_by_code('JCPL'),
- Provider.find_by_code('OrangeRockland')
- ]
- },
+ }
+ # {
+ # :name => 'New Jersey',
+ # :longitude => '-73.381805',
+ # :latitude => '40.784909',
+ # :slug => 'new-jersey',
+ # :providers => [
+ # Provider.find_by_code('PSEG'),
+ # Provider.find_by_code('JCPL'),
+ # Provider.find_by_code('OrangeRockland')
+ # ]
+ # }
].each do |r|
unless region = Region.find_by_name(r[:name])
region = Region.create({
@@ -97,7 +97,8 @@
end
end
-# Sample some data.
+# Uncomment this to sample some data right away.
+#
# Provider.all.each do |provider|
# begin
# provider.sample! true
@@ -106,4 +107,6 @@
# end
# end
+# Uncomment this to run the geocoder to get
+# updated GPS coordinates.
# rake "geocode"

0 comments on commit c66b78e

Please sign in to comment.