Created
July 2, 2014 13:48
-
-
Save jtomasek/892ae134cbf41eadc716 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message. | |
== ChangeColumnDefaultFormStepOnStaypuftDeployment: migrating ================ | |
-- change_column(:staypuft_deployments, :form_step, :string, {:default=>"inactive", :null=>false}) | |
rake aborted! | |
StandardError: An error has occurred, this and all later migrations canceled: | |
SQLite3::ConstraintException: staypuft_deployments.form_step may not be NULL: INSERT INTO "staypuft_deployments" ("id","name","description","layout_id","hostgroup_id","created_at","updated_at","form_step") VALUES (1, 'My Deployment', '', 4, 2, '2014-04-09 11:55:48.494913', '2014-04-09 11:55:58.550448', NULL)/root/foreman/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.9/lib/sqlite3/statement.rb:108:in `step' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.9/lib/sqlite3/statement.rb:108:in `block in each' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.9/lib/sqlite3/statement.rb:107:in `loop' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.9/lib/sqlite3/statement.rb:107:in `each' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/connection_adapters/sqlite_adapter.rb:248:in `to_a' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/connection_adapters/sqlite_adapter.rb:248:in `block in exec_query' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/connection_adapters/sqlite_adapter.rb:556:in `block in copy_table_contents' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/result.rb:20:in `block in each' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/result.rb:20:in `each' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/result.rb:20:in `each' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/connection_adapters/sqlite_adapter.rb:552:in `copy_table_contents' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/connection_adapters/sqlite_adapter.rb:516:in `copy_table' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/connection_adapters/sqlite_adapter.rb:488:in `move_table' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/connection_adapters/sqlite_adapter.rb:483:in `block in alter_table' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/connection_adapters/sqlite_adapter.rb:480:in `alter_table' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/connection_adapters/sqlite_adapter.rb:441:in `change_column' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/migration.rb:466:in `block in method_missing' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/migration.rb:438:in `block in say_with_time' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/migration.rb:438:in `say_with_time' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/migration.rb:458:in `method_missing' | |
/root/staypuft/db/migrate/20140513124807_change_column_default_form_step_on_staypuft_deployment.rb:3:in `up' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/migration.rb:410:in `block (2 levels) in migrate' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/migration.rb:410:in `block in migrate' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in `with_connection' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/migration.rb:389:in `migrate' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/migration.rb:528:in `migrate' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/migration.rb:720:in `block (2 levels) in migrate' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/migration.rb:775:in `call' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/migration.rb:775:in `block in ddl_transaction' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/transactions.rb:208:in `transaction' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/migration.rb:775:in `ddl_transaction' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/migration.rb:719:in `block in migrate' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/migration.rb:700:in `each' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/migration.rb:700:in `migrate' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/migration.rb:570:in `up' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/migration.rb:551:in `migrate' | |
/root/foreman/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/railties/databases.rake:193:in `block (2 levels) in <top (required)>' | |
Tasks: TOP => db:migrate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment