Skip to content

Instantly share code, notes, and snippets.

View dnordstrom's full-sized avatar

Daniel Nordstrom dnordstrom

View GitHub Profile
# See http://help.github.com/ignore-files/ for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile ~/.gitignore_global
# Ignore bundler config
/.bundle
# Ignore the default SQLite database.
> rails s
git://github.com/spree/spree.git (at v1.0.0.rc1) is not checked out. Please run `bundle install`
source 'http://rubygems.org'
gem 'rails', '3.1.3'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mysql2'
gem 'spree', :git => 'git://github.com/spree/spree.git', :tag => 'v1.0.0.rc1'
source 'http://rubygems.org'
gem 'rails', '3.1.3'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mysql2'
gem 'spree', :git => 'git://github.com/spree/spree.git', :tag => '1.0.0rc'
source 'http://rubygems.org'
gem 'rails', '3.1.3'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mysql2'
gem 'spree', '1.0.0rc', :git => 'git://github.com/spree/spree.git'
@dnordstrom
dnordstrom / gist:1536797
Created December 30, 2011 00:00
Command line progress of Spree upgrade/migration
##
# Command line logging during Spree 0.11 to 1.0.0.rc1 migration.
# (Skipping source control commands.)
##
Sites
> rvm gemset create asgseedbank-1.0.0rc
Sites
> rvm gemset use asgseedbank-1.0.0rc
== 1 =
Command: rails new asggifts -d mysql
Output: https://gist.github.com/1534716
@dnordstrom
dnordstrom / rails new asggifts -d mysql
Created December 29, 2011 16:01
rails new asggifts -d mysql
 create
 create README
 create Rakefile
 create config.ru
 create .gitignore
 create Gemfile
 create app
 create app/assets/images/rails.png
 create app/assets/javascripts/application.js
 create app/assets/stylesheets/application.css
@dnordstrom
dnordstrom / gist:1526108
Created December 28, 2011 03:47
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.) However, I'm not sure how many, or which, tables I'll need to transfer the data from so it could be troublesome. I remember doing this in old PHP projects years ago, and it wasn't fun.

  2. Could also import an SQL dump to the new DB and just attempt to get that running. However, I'm not sure just how much the following recent migrations in Spree could complicate things, seeing as the site is relatively old.

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

  • 20110111122537
@dnordstrom
dnordstrom / gist:1526086
Created December 28, 2011 03:41
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