Currently in the Railsbridge Installfest Curriculum. On step 2.5 of deploying a Rails app, you are required to "Deploy (push) to heroku.
I am getting this back in Terminal. I have followed all of the steps so far. Rails is aborting and migration is cancelled. Not sure what to do from here. Any suggestions?
Here is my output:
SH-Marketing:test_app NathanC$ heroku run rails db:migrate
Running rails db:migrate on ⬢ evening-escarpment-96781... up, run.3185 (Free)
D, [2017-05-16T16:24:18.492220 #4] DEBUG -- : (1.6ms) SELECT pg_try_advisory_lock(1088377527046093200);
D, [2017-05-16T16:24:18.504680 #4] DEBUG -- : (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
I, [2017-05-16T16:24:18.505626 #4] INFO -- : Migrating to CreateDrinks (20170516035736)
D, [2017-05-16T16:24:18.508079 #4] DEBUG -- : (1.0ms) BEGIN
== 20170516035736 CreateDrinks: migrating =====================================
-- create_table(:drinks)
D, [2017-05-16T16:24:18.510079 #4] DEBUG -- : (0.9ms) ROLLBACK
D, [2017-05-16T16:24:18.516103 #4] DEBUG -- : (1.0ms) SELECT pg_advisory_unlock(1088377527046093200)
rails aborted!
StandardError: An error has occurred, this and all later migrations canceled:
undefined method stringtemperature' for #<ActiveRecord::ConnectionAdapters::PostgreSQL::TableDefinition:0x00000004ab7e90>
/app/db/migrate/20170516035736_create_drinks.rb:4:in
block in change'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:282:in create_table'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:849:in
block in method_missing'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:818:in block in say_with_time'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:818:in
say_with_time'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:838:in method_missing'
/app/db/migrate/20170516035736_create_drinks.rb:3:in
change'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:792:in exec_migration'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:776:in
block (2 levels) in migrate'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:775:in block in migrate'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:408:in
with_connection'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:774:in migrate'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:953:in
migrate'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:1230:in block in execute_migration_in_transaction'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:1298:in
block in ddl_transaction'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:225:in block in transaction'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/connection_adapters/abstract/transaction.rb:194:in
block in within_new_transaction'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/connection_adapters/abstract/transaction.rb:191:in within_new_transaction'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:225:in
transaction'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/transactions.rb:210:in transaction'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:1298:in
ddl_transaction'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:1229:in execute_migration_in_transaction'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:1201:in
block in migrate_without_lock'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:1200:in each'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:1200:in
migrate_without_lock'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:1148:in block in migrate'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:1317:in
with_advisory_lock'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:1148:in migrate'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:1007:in
up'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:985:in migrate'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/tasks/database_tasks.rb:171:in
migrate'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/railties/databases.rake:58:in block (2 levels) in <top (required)>'
/app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.1/lib/rails/commands/rake/rake_command.rb:21:in
block in perform'
/app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.1/lib/rails/commands/rake/rake_command.rb:18:in perform'
/app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.1/lib/rails/command.rb:46:in
invoke'
/app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.1/lib/rails/commands.rb:16:in <top (required)>'
/app/bin/rails:9:in
require'
/app/bin/rails:9:in <main>'
NoMethodError: undefined method
stringtemperature' for #
/app/db/migrate/20170516035736_create_drinks.rb:4:in block in change'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:282:in
create_table'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:849:in block in method_missing'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:818:in
block in say_with_time'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:818:in say_with_time'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:838:in
method_missing'
/app/db/migrate/20170516035736_create_drinks.rb:3:in change'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:792:in
exec_migration'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:776:in block (2 levels) in migrate'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:775:in
block in migrate'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:408:in with_connection'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:774:in
migrate'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:953:in migrate'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:1230:in
block in execute_migration_in_transaction'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:1298:in block in ddl_transaction'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:225:in
block in transaction'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/connection_adapters/abstract/transaction.rb:194:in block in within_new_transaction'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/connection_adapters/abstract/transaction.rb:191:in
within_new_transaction'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:225:in transaction'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/transactions.rb:210:in
transaction'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:1298:in ddl_transaction'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:1229:in
execute_migration_in_transaction'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:1201:in block in migrate_without_lock'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:1200:in
each'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:1200:in migrate_without_lock'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:1148:in
block in migrate'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:1317:in with_advisory_lock'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:1148:in
migrate'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:1007:in up'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/migration.rb:985:in
migrate'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/tasks/database_tasks.rb:171:in migrate'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.1/lib/active_record/railties/databases.rake:58:in
block (2 levels) in '
/app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.1/lib/rails/commands/rake/rake_command.rb:21:in block in perform'
/app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.1/lib/rails/commands/rake/rake_command.rb:18:in
perform'
/app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.1/lib/rails/command.rb:46:in invoke'
/app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.1/lib/rails/commands.rb:16:in
'
/app/bin/rails:9:in require'
/app/bin/rails:9:in
'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)