Advertisement
Guest User

Untitled

a guest
May 3rd, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.70 KB | None | 0 0
  1. Running rake db:migrate on desolate-sierra-20637... up, run.3224
  2. ActiveRecord::SchemaMigration Load (4.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
  3. Migrating to CreateSubmissions (20160424205437)
  4. (1.1ms) BEGIN
  5. == 20160424205437 CreateSubmissions: migrating ================================
  6. -- create_table(:submissions)
  7. (8.4ms) CREATE TABLE "submissions" ("id" serial primary key, "content" text, "user_id" integer, "valoracio" integer DEFAULT 0, "titol" character varying, "created_at" timestamp NOT NULL, "url" character varying, "updated_at" timestamp NOT NULL)
  8. (3.1ms) CREATE INDEX "index_submissions_on_user_id" ON "submissions" ("user_id")
  9. (5.9ms) ALTER TABLE "submissions" ADD CONSTRAINT "fk_rails_8d85741475"
  10. FOREIGN KEY ("user_id")
  11. REFERENCES "users" ("id")
  12.  
  13. PG::UndefinedTable: ERROR: relation "users" does not exist
  14. : ALTER TABLE "submissions" ADD CONSTRAINT "fk_rails_8d85741475"
  15. FOREIGN KEY ("user_id")
  16. REFERENCES "users" ("id")
  17.  
  18. (1.1ms) ROLLBACK
  19. rake aborted!
  20. StandardError: An error has occurred, this and all later migrations canceled:
  21.  
  22. PG::UndefinedTable: ERROR: relation "users" does not exist
  23. : ALTER TABLE "submissions" ADD CONSTRAINT "fk_rails_8d85741475"
  24. FOREIGN KEY ("user_id")
  25. REFERENCES "users" ("id")
  26. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:155:in `async_exec'
  27. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:155:in `block in execute'
  28. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log'
  29. /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
  30. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log'
  31. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:154:in `execute'
  32. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/schema_statements.rb:748:in `add_foreign_key'
  33. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/schema_statements.rb:217:in `block in create_table'
  34. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/schema_statements.rb:216:in `each_pair'
  35. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/schema_statements.rb:216:in `create_table'
  36. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:662:in `block in method_missing'
  37. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:632:in `block in say_with_time'
  38. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:632:in `say_with_time'
  39. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:652:in `method_missing'
  40. /app/db/migrate/20160424205437_create_submissions.rb:3:in `change'
  41. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:606:in `exec_migration'
  42. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:590:in `block (2 levels) in migrate'
  43. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:589:in `block in migrate'
  44. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection'
  45. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:588:in `migrate'
  46. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:765:in `migrate'
  47. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:995:in `block in execute_migration_in_transaction'
  48. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:1041:in `block in ddl_transaction'
  49. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
  50. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/transaction.rb:188:in `within_new_transaction'
  51. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
  52. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/transactions.rb:220:in `transaction'
  53. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:1041:in `ddl_transaction'
  54. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:994:in `execute_migration_in_transaction'
  55. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:956:in `block in migrate'
  56. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:952:in `each'
  57. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:952:in `migrate'
  58. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:820:in `up'
  59. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:798:in `migrate'
  60. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/tasks/database_tasks.rb:137:in `migrate'
  61. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/railties/databases.rake:44:in `block (2 levels) in <top (required)>'
  62. ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "users" does not exist
  63. : ALTER TABLE "submissions" ADD CONSTRAINT "fk_rails_8d85741475"
  64. FOREIGN KEY ("user_id")
  65. REFERENCES "users" ("id")
  66. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:155:in `async_exec'
  67. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:155:in `block in execute'
  68. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log'
  69. /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
  70. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log'
  71. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:154:in `execute'
  72. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/schema_statements.rb:748:in `add_foreign_key'
  73. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/schema_statements.rb:217:in `block in create_table'
  74. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/schema_statements.rb:216:in `each_pair'
  75. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/schema_statements.rb:216:in `create_table'
  76. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:662:in `block in method_missing'
  77. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:632:in `block in say_with_time'
  78. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:632:in `say_with_time'
  79. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:652:in `method_missing'
  80. /app/db/migrate/20160424205437_create_submissions.rb:3:in `change'
  81. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:606:in `exec_migration'
  82. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:590:in `block (2 levels) in migrate'
  83. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:589:in `block in migrate'
  84. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection'
  85. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:588:in `migrate'
  86. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:765:in `migrate'
  87. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:995:in `block in execute_migration_in_transaction'
  88. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:1041:in `block in ddl_transaction'
  89. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
  90. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/transaction.rb:188:in `within_new_transaction'
  91. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
  92. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/transactions.rb:220:in `transaction'
  93. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:1041:in `ddl_transaction'
  94. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:994:in `execute_migration_in_transaction'
  95. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:956:in `block in migrate'
  96. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:952:in `each'
  97. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:952:in `migrate'
  98. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:820:in `up'
  99. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:798:in `migrate'
  100. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/tasks/database_tasks.rb:137:in `migrate'
  101. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/railties/databases.rake:44:in `block (2 levels) in <top (required)>'
  102. PG::UndefinedTable: ERROR: relation "users" does not exist
  103. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:155:in `async_exec'
  104. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:155:in `block in execute'
  105. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log'
  106. /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
  107. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log'
  108. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:154:in `execute'
  109. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/schema_statements.rb:748:in `add_foreign_key'
  110. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/schema_statements.rb:217:in `block in create_table'
  111. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/schema_statements.rb:216:in `each_pair'
  112. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/schema_statements.rb:216:in `create_table'
  113. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:662:in `block in method_missing'
  114. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:632:in `block in say_with_time'
  115. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:632:in `say_with_time'
  116. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:652:in `method_missing'
  117. /app/db/migrate/20160424205437_create_submissions.rb:3:in `change'
  118. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:606:in `exec_migration'
  119. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:590:in `block (2 levels) in migrate'
  120. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:589:in `block in migrate'
  121. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection'
  122. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:588:in `migrate'
  123. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:765:in `migrate'
  124. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:995:in `block in execute_migration_in_transaction'
  125. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:1041:in `block in ddl_transaction'
  126. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
  127. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/transaction.rb:188:in `within_new_transaction'
  128. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
  129. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/transactions.rb:220:in `transaction'
  130. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:1041:in `ddl_transaction'
  131. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:994:in `execute_migration_in_transaction'
  132. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:956:in `block in migrate'
  133. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:952:in `each'
  134. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:952:in `migrate'
  135. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:820:in `up'
  136. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:798:in `migrate'
  137. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/tasks/database_tasks.rb:137:in `migrate'
  138. /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/railties/databases.rake:44:in `block (2 levels) in <top (required)>'
  139. Tasks: TOP => db:migrate
  140. (See full trace by running task with --trace)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement