Миграция, не работающая в Ruby On Rails

По какой-то причине мое приложение Ruby on Rails сообщает мне, что он не может выполнять миграции. Я не уверен, как это исправить. Я создал таблицу без какой-либо информации случайно. Затем я попытался удалить файл миграции и таблицу, которую он создал. Когда я пытаюсь запустить команду миграции, она дает мне эту ошибку:

rails aborted!
Don't know how to build task 'db:migration' (see --tasks)
/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/railties-5.0.0/lib/rails/commands/rake_proxy.rb:13:in 'block in run_rake_task'
/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/railties-5.0.0/lib/rails/commands/rake_proxy.rb:10:in 'run_rake_task'
/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/railties-5.0.0/lib/rails/commands/commands_tasks.rb:51:in 'run_command!'
/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/railties-5.0.0/lib/rails/commands.rb:18:in '<top (required)>'
/home/ubuntu/workspace/saasapp/bin/rails:9:in 'require'
/home/ubuntu/workspace/saasapp/bin/rails:9:in '<top (required)>'
/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/spring-1.7.2/lib/spring/client/rails.rb:28:in 'load'
/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/spring-1.7.2/lib/spring/client/rails.rb:28:in 'call'
/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/spring-1.7.2/lib/spring/client/command.rb:7:in 'call'
/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/spring-1.7.2/lib/spring/client.rb:30:in 'run'
/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/spring-1.7.2/bin/spring:49:in '<top (required)>'
/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/spring-1.7.2/lib/spring/binstub.rb:11:in 'load'
/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/spring-1.7.2/lib/spring/binstub.rb:11:in '<top (required)>'
/home/ubuntu/workspace/saasapp/bin/spring:15:in 'require'
/home/ubuntu/workspace/saasapp/bin/spring:15:in '<top (required)>'
bin/rails:3:in 'load'
bin/rails:3:in '<main>'
(See full trace by running task with --trace)

Может кто-то, пожалуйста, помогите мне исправить эту проблему. Мне нужно удалить существующую таблицу, чтобы я мог создать правильный. Он не будет заполнять мой файл схемы.

Это ошибка, которую я получаю, когда я запускаю rake db: migrate

rake db:migrate

== 20170322214259 CreateProfiles: мигрировать ================================================ ! StandardError: Произошла ошибка, эта и все последующие миграции были отменены:

SQLite3 :: SQLException: не может добавить столбец NOT NULL со значением по умолчанию NULL: ALTER TABLE "profiles" ADD "created_at" datetime NOT NULL/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/sqlite3-1.3.13/lib/sqlite3/database.rb: 91: in initialize'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/sqlite3-1.3.13/lib/sqlite3/database.rb:91:in new '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/sqlite3-1.3.13/lib/sqlite3/database.rb:91:in prepare'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/sqlite3-1.3.13/lib/sqlite3/database.rb:137:in execute prepare'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/sqlite3-1.3.13/lib/sqlite3/database.rb:137:in -5.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb: 232: в block in execute'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:566:in блоке в журнале '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21: в instrument'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:560:in instrument'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:560:in журнале '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb: 232: in execute'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:547:in add_column '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:373:in add_column'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:1096:in add_timestamps '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_definitions.rb: 525: in timestamps'/home/ubuntu/workspace/saasapp/db/migrate/20170322214259_create_profiles.rb:11:in блоке в изменении '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_ адаптеры /abstract/schema_statements.rb: 443: in change_table'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:845:in блоке в method_missing '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:в block in say_with_time'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in say_with_time '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb: 834: in method_missing'/home/ubuntu/workspace/saasapp/db/migrate/20170322214259_create_profiles.rb:3:in change'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb: 788: in exec_migration'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:772:in блоке (2 уровня) в migrate '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb: 771: в block in migrate'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:398:in block in migrate'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:398:in with_connection '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb: 770: in migrate'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in migrate '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb: 1211: в block in execute_migration_in_transaction'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in блоке в ddl_transaction'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb: 232: в block in transaction'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/transaction.rb:189:in inside_new_transaction '/usr/local/rvm/gems/ruby-2.3.0@saasap p/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb: 232: в transaction'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in транзакции '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279: в ddl_transaction'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:1210:in execute_migration_in_transaction'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb: 1183: в block in migrate_without_lock'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in каждом '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration. rb: 1182: in migrate_without_lock'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:1133:in migrate'/usr/local/rvm/gems/ruby-2.3.0@saasa pp/gems/activerecord-5.0.0/lib/active_record/migration.rb: 1005: in up'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in migrate '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in migrate'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/railties/databases.rake:58:in block (2 уровня) в'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/rake-12.0.0/exe/rake:27:in <top (required)>'/usr/local/rvm/gems/ruby-2.3.0@saasapp/bin/ruby_executable_hooks:15:in eval '/usr/local/rvm/gems/ruby-2.3.0@saasapp/bin/ruby_executable_hooks:15:in <main>' ActiveRecord::StatementInvalid: SQLite3::SQLException: Cannot add a NOT NULL column with default value NULL: ALTER TABLE "profiles" ADD "created_at" datetime NOT NULL/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/sqlite3-1.3.13/lib/sqlite3/database.rb:91:in initialize <main>' ActiveRecord::StatementInvalid: SQLite3::SQLException: Cannot add a NOT NULL column with default value NULL: ALTER TABLE "profiles" ADD "created_at" datetime NOT NULL/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/sqlite3-1.3.13/lib/sqlite3/database.rb:91:in .3.13/lib/sqlite3/database.rb: 91: в new'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/sqlite3-1.3.13/lib/sqlite3/database.rb:91:in prepare '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/sqlite3-1.3.13/lib/sqlite3/database.rb:137:in execute'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:232:in block in execute '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:566:в block in log'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in instrument block in log'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in: 560: в log'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:232:in execute'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_r ecord/connection_adapters/abstract/schema_statements.rb: 547: in add_column'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:373:in add_column '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:1096 add_column'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:373:in add_timestamps'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_definitions.rb:525:in timestamps '/home/ubuntu/workspace/saasapp/db/migrate/20170322214259_create_profiles.rb: 11: в block in change'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:443:in change_table '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:845:в block in method_missing'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in bl ock in say_with_time '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in say_with_time'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in method_missing '/home/ubuntu/workspace/saasapp/db/migrate/20170322214259_create_profiles.rb:3:in change'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in exec_migration'/usr/local/rvm/gems/ruby -2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb: 772: в block (2 levels) in migrate'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in block in migrate '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:398:in with_connection'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in migrate '/usr/local/rvm/gems/ruby-2. 3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb: 950: in migrate'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:1211:in блоке в execute_migration_in_transaction '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279: в block in ddl_transaction'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in блоке в транзакции'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/transaction.rb: 189: in within_new_transaction'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in транзакции '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/transaction.rb: 211: в transaction'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in transaction'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in ddl_transaction '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb: 1210: in execute_migration_in_transaction'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:1183:in блоке в migrate_without_lock'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:в each'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in '/usr/local/rvm/gems/ruby-2.3.0@saasapp each'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in migrate_without_lock each'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in/migration.rb:1133:in migrate'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in up'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in migrate'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in migrate'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in migrate '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/railties/databases.rake:58:in block (2 levels) in <top (required)>'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/rake-12.0.0/exe/rake:27:in '/usr/local/rvm/gems/ruby-2.3. 0 @saasapp/bin/ruby_executable_hooks: 15: in eval'/usr/local/rvm/gems/ruby-2.3.0@saasapp/bin/ruby_executable_hooks:15:in ' SQLite3 :: SQLException: не может добавить столбец NOT NULL с значение по умолчанию NULL/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/sqlite3-1.3.13/lib/sqlite3/database.rb:91:in initialize'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/sqlite3-1.3.13/lib/sqlite3/database.rb:91:in новом '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/sqlite3- 1.3.13/lib/sqlite3/database.rb: 91: in prepare'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/sqlite3-1.3.13/lib/sqlite3/database.rb:137:in execute '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:232:in block in execute'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:566:in block in execute'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:566:in блоке в журнале '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb: 21: в instrument'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:560:in журнале '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb: 232: in execute'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:547:in add_column '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:373:in add_column'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:1096:in add_timestamps '/usr/local/rvm/ge ms/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_definitions.rb: 525: в timestamps'/home/ubuntu/workspace/saasapp/db/migrate/20170322214259_create_profiles.rb:11:in block in change '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:443:in change_table'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:845:in блоке в method_missing'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb: 814: в block in say_with_time'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in say_with_time '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration. rb: 834: in method_missing'/home/ubuntu/workspace/saasapp/db/migrate/20170322214259_create_profiles.rb:3:in change'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gem s/activerecord-5.0.0/lib/active_record/migration.rb: 788: in exec_migration'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:772:in блоке (2 уровня) в migrate '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:771: в block in migrate'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:398:in with_connection'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb: 770: in migrate'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in migrate '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb: 1211: в block in execute_migration_in_transaction'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in блоке в ddl_transaction '/usr/local/rvm/gems/ruby-2.3.0 @saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb: 232: в block in transaction'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/transaction.rb:189:in inside_new_transaction '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in transaction'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in транзакция '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in ddl_transaction'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:1210:in execute_migration_in_transaction '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb: 1183: в block in migrate_without_lock'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in block in migrate_without_lock'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in каждом '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration. rb: 1182: in migrate_without_lock'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:1133:in migrate'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb: 1005: in up'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in migrate '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb: 161: in migrate'/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/activerecord-5.0.0/lib/active_record/railties/databases.rake:58:in block (2 уровня) в '/usr/local/rvm/gems/ruby-2.3.0@saasapp/gems/rake-12.0.0/exe/rake:27:in <top (required)>'/usr/local/rvm/gems/ruby-2.3.0@saasapp/bin/ruby_executable_hooks:15:in eval '/usr/local/rvm/gems/ruby-2.3.0@saasapp/bin/ruby_executable_hooks:15:in' 'T спрашивает: TOP => db: migrate (см. полную трассировку, выполнив задачу с --trace)

-1
источник поделиться
2 ответа

В дополнение к моему комментарию, предлагающему вам использовать rake db:migrate вместо rake db:migration:

Я также предлагаю вам заглянуть в rake db: rollback, если вы обнаружите, что совершили ошибку при создании своей модели/миграции.

0
источник

Я считаю, что вы использовали миграцию вместо миграции rake db:migrate

0
источник

Посмотрите другие вопросы по метке или Задайте вопрос