Skip to content

Instantly share code, notes, and snippets.

@graybill
Created March 11, 2011 18:24
Show Gist options
  • Save graybill/866319 to your computer and use it in GitHub Desktop.
Save graybill/866319 to your computer and use it in GitHub Desktop.
❼ > rake db:migrate --trace
(in /Users/lgraybill/code/pifa-on-rails)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
Requiring REXML
** Execute db:migrate
== CreateGalleries: migrating ================================================
-- create_table(:galleries)
NOTICE: CREATE TABLE will create implicit sequence "galleries_id_seq1" for serial column "galleries.id"
rake aborted!
An error has occurred, this and all later migrations canceled:
PGError: ERROR: relation "galleries" already exists
: CREATE TABLE "galleries" ("id" serial primary key, "created_at" timestamp, "updated_at" timestamp)
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract_adapter.rb:221:in `log'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/connection_adapters/postgresql_adapter.rb:520:in `execute'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/schema_statements.rb:109:in `create_table'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/migration.rb:352:in `send'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/migration.rb:352:in `method_missing'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/migration.rb:328:in `say_with_time'
/Users/lgraybill/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/benchmark.rb:293:in `measure'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/migration.rb:328:in `say_with_time'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/migration.rb:348:in `method_missing'
./db/migrate//20110215221204_create_galleries.rb:3:in `up_without_benchmarks'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/migration.rb:282:in `send'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/migration.rb:282:in `migrate'
/Users/lgraybill/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/benchmark.rb:293:in `measure'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/migration.rb:282:in `migrate'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/migration.rb:365:in `__send__'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/migration.rb:365:in `migrate'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/migration.rb:491:in `migrate'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/migration.rb:565:in `call'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/migration.rb:565:in `ddl_transaction'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/transactions.rb:182:in `transaction'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/migration.rb:565:in `ddl_transaction'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/migration.rb:490:in `migrate'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/migration.rb:477:in `each'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/migration.rb:477:in `migrate'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/migration.rb:401:in `up'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/activerecord-2.3.8/lib/active_record/migration.rb:383:in `migrate'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/rails-2.3.8/lib/tasks/databases.rake:112
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/Users/lgraybill/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/gems/rake-0.8.7/bin/rake:31
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/bin/rake:19:in `load'
/Users/lgraybill/.rvm/gems/ruby-1.8.7-p302@pifa/bin/rake:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment