Skip to content

Instantly share code, notes, and snippets.

@aq2bq
Last active December 19, 2015 05:49
Show Gist options
  • Select an option

  • Save aq2bq/5906818 to your computer and use it in GitHub Desktop.

Select an option

Save aq2bq/5906818 to your computer and use it in GitHub Desktop.
Spree::Stateの初期データ投入。/ ありがとうございます: https://gist.github.com/koseki/38926
# encoding: utf-8
Spree::Country.create!({"name"=>"日本", "iso3"=>"JPN", "iso"=>"JP", "iso_name"=>"JAPAN", "numcode"=>"392"}, :without_protection => true)
country = Spree::Country.find_by_name('日本')
Spree::State.create!({"name"=>"北海道", "abbr"=>"hokkaido", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"青森県", "abbr"=>"aomori", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"岩手県", "abbr"=>"iwate", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"宮城県", "abbr"=>"miyagi", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"秋田県", "abbr"=>"akita", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"山形県", "abbr"=>"yamagata", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"福島県", "abbr"=>"fukushima", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"茨城県", "abbr"=>"ibaraki", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"栃木県", "abbr"=>"tochigi", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"群馬県", "abbr"=>"gunma", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"埼玉県", "abbr"=>"saitama", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"千葉県", "abbr"=>"chiba", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"東京都", "abbr"=>"tokyo", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"神奈川県", "abbr"=>"kanagawa", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"新潟県", "abbr"=>"niigata", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"富山県", "abbr"=>"toyama", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"石川県", "abbr"=>"ishikawa", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"福井県", "abbr"=>"fukui", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"山梨県", "abbr"=>"yamanashi", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"長野県", "abbr"=>"nagano", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"岐阜県", "abbr"=>"gifu", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"静岡県", "abbr"=>"shizuoka", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"愛知県", "abbr"=>"aichi", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"三重県", "abbr"=>"mie", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"滋賀県", "abbr"=>"shiga", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"京都府", "abbr"=>"kyoto", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"大阪府", "abbr"=>"osaka", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"兵庫県", "abbr"=>"hyogo", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"奈良県", "abbr"=>"nara", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"和歌山県", "abbr"=>"wakayama", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"鳥取県", "abbr"=>"tottori", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"島根県", "abbr"=>"shimane", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"岡山県", "abbr"=>"okayama", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"広島県", "abbr"=>"hiroshima", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"山口県", "abbr"=>"yamaguchi", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"徳島県", "abbr"=>"tokushima", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"香川県", "abbr"=>"kagawa", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"愛媛県", "abbr"=>"ehime", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"高知県", "abbr"=>"kochi", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"福岡県", "abbr"=>"fukuoka", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"佐賀県", "abbr"=>"saga", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"長崎県", "abbr"=>"nagasaki", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"熊本県", "abbr"=>"kumamoto", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"大分県", "abbr"=>"oita", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"宮崎県", "abbr"=>"miyazaki", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"鹿児島県", "abbr"=>"kagoshima", :country=>country}, :without_protection => true)
Spree::State.create!({"name"=>"沖縄県", "abbr"=>"okinawa", :country=>country}, :without_protection => true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment