Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Running rake db:migrate on desolate-sierra-20637... up, run.7131
- (7.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
- (5.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
- ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
- Migrating to CreateLinks (20160419105608)
- (0.7ms) BEGIN
- == 20160419105608 CreateLinks: migrating ======================================
- -- create_table(:links)
- (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)
- -> 0.0067s
- == 20160419105608 CreateLinks: migrated (0.0068s) =============================
- SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160419105608"]]
- (2.5ms) COMMIT
- Migrating to CreateSubmissions (20160424205437)
- (0.7ms) BEGIN
- == 20160424205437 CreateSubmissions: migrating ================================
- -- create_table(:submissions)
- (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)
- (2.6ms) CREATE INDEX "index_submissions_on_user_id" ON "submissions" ("user_id")
- (5.5ms) ALTER TABLE "submissions" ADD CONSTRAINT "fk_rails_8d85741475"
- FOREIGN KEY ("user_id")
- REFERENCES "users" ("id")
- PG::UndefinedTable: ERROR: relation "users" does not exist
- : ALTER TABLE "submissions" ADD CONSTRAINT "fk_rails_8d85741475"
- FOREIGN KEY ("user_id")
- REFERENCES "users" ("id")
- (0.7ms) ROLLBACK
- rake aborted!
- StandardError: An error has occurred, this and all later migrations canceled:
- PG::UndefinedTable: ERROR: relation "users" does not exist
- : ALTER TABLE "submissions" ADD CONSTRAINT "fk_rails_8d85741475"
- FOREIGN KEY ("user_id")
- REFERENCES "users" ("id")
- /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'
- /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'
- /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'
- /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:154:in `execute'
- /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'
- /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'
- /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'
- /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'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:662:in `block in method_missing'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:632:in `block in say_with_time'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:632:in `say_with_time'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:652:in `method_missing'
- /app/db/migrate/20160424205437_create_submissions.rb:3:in `change'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:606:in `exec_migration'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:590:in `block (2 levels) in migrate'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:589:in `block in migrate'
- /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'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:588:in `migrate'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:765:in `migrate'
- /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'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:1041:in `block in ddl_transaction'
- /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'
- /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'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/transactions.rb:220:in `transaction'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:1041:in `ddl_transaction'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:994:in `execute_migration_in_transaction'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:956:in `block in migrate'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:952:in `each'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:952:in `migrate'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:820:in `up'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:798:in `migrate'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/tasks/database_tasks.rb:137:in `migrate'
- /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)>'
- ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "users" does not exist
- : ALTER TABLE "submissions" ADD CONSTRAINT "fk_rails_8d85741475"
- FOREIGN KEY ("user_id")
- REFERENCES "users" ("id")
- /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'
- /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'
- /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'
- /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:154:in `execute'
- /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'
- /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'
- /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'
- /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'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:662:in `block in method_missing'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:632:in `block in say_with_time'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:632:in `say_with_time'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:652:in `method_missing'
- /app/db/migrate/20160424205437_create_submissions.rb:3:in `change'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:606:in `exec_migration'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:590:in `block (2 levels) in migrate'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:589:in `block in migrate'
- /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'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:588:in `migrate'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:765:in `migrate'
- /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'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:1041:in `block in ddl_transaction'
- /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'
- /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'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/transactions.rb:220:in `transaction'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:1041:in `ddl_transaction'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:994:in `execute_migration_in_transaction'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:956:in `block in migrate'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:952:in `each'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:952:in `migrate'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:820:in `up'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:798:in `migrate'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/tasks/database_tasks.rb:137:in `migrate'
- /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)>'
- PG::UndefinedTable: ERROR: relation "users" does not exist
- /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'
- /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'
- /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'
- /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:154:in `execute'
- /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'
- /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'
- /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'
- /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'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:662:in `block in method_missing'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:632:in `block in say_with_time'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:632:in `say_with_time'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:652:in `method_missing'
- /app/db/migrate/20160424205437_create_submissions.rb:3:in `change'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:606:in `exec_migration'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:590:in `block (2 levels) in migrate'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:589:in `block in migrate'
- /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'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:588:in `migrate'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:765:in `migrate'
- /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'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:1041:in `block in ddl_transaction'
- /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'
- /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'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/transactions.rb:220:in `transaction'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:1041:in `ddl_transaction'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:994:in `execute_migration_in_transaction'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:956:in `block in migrate'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:952:in `each'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:952:in `migrate'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:820:in `up'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/migration.rb:798:in `migrate'
- /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.2/lib/active_record/tasks/database_tasks.rb:137:in `migrate'
- /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)>'
- Tasks: TOP => db:migrate
- (See full trace by running task with --trace)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement