Skip to content

Instantly share code, notes, and snippets.

@dnordstrom
Created December 28, 2011 03:41
Show Gist options
  • Save dnordstrom/1526086 to your computer and use it in GitHub Desktop.
Save dnordstrom/1526086 to your computer and use it in GitHub Desktop.
Question

Radar: Anyway, I figure you have more insight into Spree DB schema etc than me, and definitely more experience, so; about "that thing" from earlier, the shit site that was my first Rails (and Spree) project. I've installed latest Spree and I'm now considering DB migration approaches to get data from the old 0.11 site to the new site:

  1. Could run migrations on the new clean setup and go from there (i.e. transfer old content to the new site when the schema is in place.)
  2. Could also import an SQL dump to the new DB and just attempt to get that running.

I looked at the Spree migrations added to your repo the past year and while they aren't many, there are some. Namely:

20111007143030_namespace_top_level_models.rb 20111107143030_migrate_namespaced_polymorphic_models.rb 20111128153359_new_preferences.rb 20111201024007_make_adjustments_polymorphic.rb 20111215032408_add_company_to_addresses.rb 20111216154844_add_inc_tax_to_tax_rates.rb 20111219203242_rename_inc_price_attribute.rb

With this in mind, do you have any pointers on what approach to take? Perhaps you'd do it entirely differently? It feels like I'm choosing between two bad options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment