OSDN Git Service
(root)
/
tdcgexplorer
/
nimono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe983b4
)
create or update location
author
nomeu
<nomeu@nomeu.org>
Wed, 9 Jun 2010 17:04:42 +0000
(
02:04
+0900)
committer
nomeu
<nomeu@nomeu.org>
Wed, 9 Jun 2010 17:04:42 +0000
(
02:04
+0900)
bin/load-locations.rb
patch
|
blob
|
history
diff --git
a/bin/load-locations.rb
b/bin/load-locations.rb
index
b3cab1a
..
809bd2a
100644
(file)
--- a/
bin/load-locations.rb
+++ b/
bin/load-locations.rb
@@
-1,3
+1,4
@@
#!ruby
# vim: fileencoding=utf-8 :
-Location.create(:code => "mmd", :site => "http://bytatsu.net/uploader/mikumikudance/", :summary => "MMD専用アップローダ")
+location = Location.find_or_initialize_by_id(1)
+location.update_attributes(:code => "mmd", :site => "http://bytatsu.net/uploader/mikumikudance/", :summary => "MMD専用アップローダ")