Advertisement
Guest User

Untitled

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