Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Everything depends on sqlite3 #31

Closed
wants to merge 1 commit into from

2 participants

@mike-burns
Owner

Individual tests won't run correctly without a sqlte3 dependency.

With this in place, we can e.g. migrate the DB as needed for the specs:

pacecar/spec/dummy% RAILS_ENV=test BUNDLE_GEMFILE=../../gemfiles/rails-3.1.6-database-mysql.gemfile bundle exec rake db:migrate
@mjankowski
Owner

Maybe this is obvious and I'm missing it -- why do the appraisals that are testing the other db drivers need sqlite?

Nevermind, I was totally wrong. Closing this.

@mike-burns mike-burns closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 25, 2012
  1. @mike-burns
This page is out of date. Refresh to see the latest.
View
1  Appraisals
@@ -7,6 +7,7 @@ rails_versions.each do |rails_version|
gem 'rails', rails_version
gem database_driver
gem 'pacecar', :path => '../'
+ gem 'sqlite3'
end
end
end
View
1  gemfiles/rails-3.0.15-database-mysql.gemfile
@@ -5,5 +5,6 @@ source "http://rubygems.org"
gem "rails", "3.0.15"
gem "mysql"
gem "pacecar", :path=>"../"
+gem "sqlite3"
gemspec :path=>"../"
View
1  gemfiles/rails-3.0.15-database-pg.gemfile
@@ -5,5 +5,6 @@ source "http://rubygems.org"
gem "rails", "3.0.15"
gem "pg"
gem "pacecar", :path=>"../"
+gem "sqlite3"
gemspec :path=>"../"
View
2  gemfiles/rails-3.0.15-database-sqlite3.gemfile
@@ -3,7 +3,7 @@
source "http://rubygems.org"
gem "rails", "3.0.15"
-gem "sqlite3"
gem "pacecar", :path=>"../"
+gem "sqlite3"
gemspec :path=>"../"
View
1  gemfiles/rails-3.1.6-database-mysql.gemfile
@@ -5,5 +5,6 @@ source "http://rubygems.org"
gem "rails", "3.1.6"
gem "mysql"
gem "pacecar", :path=>"../"
+gem "sqlite3"
gemspec :path=>"../"
View
1  gemfiles/rails-3.1.6-database-pg.gemfile
@@ -5,5 +5,6 @@ source "http://rubygems.org"
gem "rails", "3.1.6"
gem "pg"
gem "pacecar", :path=>"../"
+gem "sqlite3"
gemspec :path=>"../"
View
2  gemfiles/rails-3.1.6-database-sqlite3.gemfile
@@ -3,7 +3,7 @@
source "http://rubygems.org"
gem "rails", "3.1.6"
-gem "sqlite3"
gem "pacecar", :path=>"../"
+gem "sqlite3"
gemspec :path=>"../"
View
1  gemfiles/rails-3.2.6-database-mysql.gemfile
@@ -5,5 +5,6 @@ source "http://rubygems.org"
gem "rails", "3.2.6"
gem "mysql"
gem "pacecar", :path=>"../"
+gem "sqlite3"
gemspec :path=>"../"
View
1  gemfiles/rails-3.2.6-database-pg.gemfile
@@ -5,5 +5,6 @@ source "http://rubygems.org"
gem "rails", "3.2.6"
gem "pg"
gem "pacecar", :path=>"../"
+gem "sqlite3"
gemspec :path=>"../"
View
2  gemfiles/rails-3.2.6-database-sqlite3.gemfile
@@ -3,7 +3,7 @@
source "http://rubygems.org"
gem "rails", "3.2.6"
-gem "sqlite3"
gem "pacecar", :path=>"../"
+gem "sqlite3"
gemspec :path=>"../"
View
55 spec/dummy/db/schema.rb
@@ -0,0 +1,55 @@
+# encoding: UTF-8
+# This file is auto-generated from the current state of the database. Instead
+# of editing this file, please use the migrations feature of Active Record to
+# incrementally modify your database, and then regenerate this schema definition.
+#
+# Note that this schema.rb definition is the authoritative source for your
+# database schema. If you need to create the application database on another
+# system, you should be using db:schema:load, not running all the migrations
+# from scratch. The latter is a flawed and unsustainable approach (the more migrations
+# you'll amass, the slower it'll run and the greater likelihood for issues).
+#
+# It's strongly recommended to check this file into your version control system.
+
+ActiveRecord::Schema.define(:version => 20100419201348) do
+
+ create_table "comments", :force => true do |t|
+ t.integer "user_id"
+ t.text "description"
+ t.integer "rating"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ create_table "mammals", :force => true do |t|
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ create_table "posts", :force => true do |t|
+ t.string "owner_type"
+ t.integer "owner_id"
+ t.string "publication_state"
+ t.string "post_type"
+ t.string "title"
+ t.text "body"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ create_table "users", :force => true do |t|
+ t.boolean "admin", :default => false, :null => false
+ t.datetime "approved_at"
+ t.datetime "rejected_at"
+ t.date "last_posted_on"
+ t.string "first_name"
+ t.string "last_name"
+ t.text "description"
+ t.integer "age"
+ t.float "rating"
+ t.decimal "balance", :precision => 10, :scale => 0
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+end
Something went wrong with that request. Please try again.