Skip to content

Instantly share code, notes, and snippets.

@jparbros
Created September 22, 2014 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jparbros/e1c9bd8c281c3e1af519 to your computer and use it in GitHub Desktop.
Save jparbros/e1c9bd8c281c3e1af519 to your computer and use it in GitHub Desktop.
oz = Spree::Country.find_by_iso('AU')
oz.states << Spree::State.create(:name => 'Australian Capital Territory', :abbr => 'ACT')
oz.states << Spree::State.create(:name => 'New South Wales', :abbr => 'NSW')
oz.states << Spree::State.create(:name => 'Victoria', :abbr => 'VIC')
oz.states << Spree::State.create(:name => 'Tasmania', :abbr => 'TAS')
oz.states << Spree::State.create(:name => 'Queensland', :abbr => 'QLD')
oz.states << Spree::State.create(:name => 'South Australia', :abbr => 'SA')
oz.states << Spree::State.create(:name => 'Western Australia', :abbr => 'WA')
oz.states << Spree::State.create(:name => 'Northern Territory', :abbr => 'NT')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment