rails generate migration DropTablename
A file will be created, in the db > migrate folder, make sure it looks like:
| import code; code.interact(local=dict(globals(), **locals())) |
| without the schema symlink: `REGION=702 bundle exec rake db:migrate` | |
| fails in the same way... so it's not our code. and I can't change regions so I have to test this ... some other way. | |
| so if i run it locally and spin up vms | |
| I will have to create relationships | |
| or if you could rspec this somehow? | |
| -- Converting ems_ref_obj to ems_ref_type for MigrateEmsRefObjToEmsRefType::Host | |
| -> 1.1567s |
| Failures: | |
| 1) ManageIQ::Providers::Inventory::Persister tests we can serialize inventory object with nested lazy references | |
| Failure/Error: self.miq_group ||= tenant_group || current_user_group || ems_tenant_group || root_tenant_group | |
| ActiveModel::MissingAttributeError: | |
| missing attribute: miq_group_id | |
| # /Users/drewmu/.rvm/gems/ruby-2.5.5/gems/activerecord-5.2.4.3/lib/active_record/attribute_methods/read.rb:77:in `block in _read_attribute' | |
| # /Users/drewmu/.rvm/gems/ruby-2.5.5/gems/activemodel-5.2.4.3/lib/active_model/attribute_set.rb:48:in `block in fetch_value' | |
| # /Users/drewmu/.rvm/gems/ruby-2.5.5/gems/activemodel-5.2.4.3/lib/active_model/attribute.rb:222:in `value' |
| FATAL -- : Error caught: [NoMethodError] undefined method `[]' for nil:NilClass | |
| /Users/duhlmann/.rvm/gems/ruby-2.5.7/bundler/gems/manageiq-ui-classic-6e87da71221f/app/controllers/application_controller/buttons.rb:478:in `button_create_update' | |
| /Users/duhlmann/.rvm/gems/ruby-2.5.7/bundler/gems/manageiq-ui-classic-6e87da71221f/app/controllers/application_controller/buttons.rb:190:in `button_create' | |
| /Users/duhlmann/.rvm/gems/ruby-2.5.7/gems/actionpack-5.1.7/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' | |
| /Users/duhlmann/.rvm/gems/ruby-2.5.7/gems/actionpack-5.1.7/lib/abstract_controller/base.rb:186:in `process_action' | |
| /Users/duhlmann/.rvm/gems/ruby-2.5.7/gems/actionpack-5.1.7/lib/action_controller/metal/rendering.rb:30:in `process_action' | |
| /Users/duhlmann/.rvm/gems/ruby-2.5.7/gems/actionpack-5.1.7/lib/abstract_controller/callbacks.rb:20:in `block in process_action' | |
| /Users/duhlmann/.rvm/gems/ruby-2.5.7/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:131:in `run_callbacks' | |
| /Users/duh |
| [2019-10-01T07:01:20.382292 #81380:3fddf931d640] ERROR -- : MIQ(miq_ae_tools_controller-automate_json): Error: import processing failed: Couldn't find ImportFileUpload with 'id'=8 |
| F, [2019-10-01T06:50:58.317694 #78907:3ff75b85dea4] FATAL -- : Error caught: [NoMethodError] undefined method `lookup_by_userid' for #<Class:0x00007feeb5d30b48> | |
| Did you mean? lookup_by_identity | |
| /Users/duhlmann/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/dynamic_matchers.rb:22:in `method_missing' | |
| /Users/duhlmann/manageiq-ui-classic/app/services/user_validation_service.rb:36:in `validate_user' | |
| /Users/duhlmann/manageiq-ui-classic/app/controllers/dashboard_controller.rb:658:in `validate_user' | |
| /Users/duhlmann/manageiq-ui-classic/app/controllers/dashboard_controller.rb:545:in `authenticate' | |
| /Users/duhlmann/.rvm/gems/ruby-2.5.3/gems/actionpack-5.1.7/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' | |
| /Users/duhlmann/.rvm/gems/ruby-2.5.3/gems/actionpack-5.1.7/lib/abstract_controller/base.rb:186:in `process_action' | |
| /Users/duhlmann/.rvm/gems/ruby-2.5.3/gems/actionpack-5.1.7/lib/action_controller/metal/rendering.rb:30:in `process_action' | |
| /Users/duhlmann/.rvm/gems/ruby-2.5.3/gems/ |
** Delivering Message id: [92], id: [], Zone: [], Role: [], Server: [], MiqTask id: [], Ident: [generic], Target id: [], Instance id: [18], Task id: [], Command: [ServiceTemplateProvisionRequest.call_automate_event], Timeout: [3600], Priority: [100], State: [ready], Deliver On: [], Data: [], Args: ["request_created"]
ServiceTemplateProvisionRequest Load (1.8ms) SELECT "miq_requests".* FROM "miq_requests" WHERE "miq_requests"."type" IN ('ServiceTemplateProvisionRequest', 'ServiceTemplateTransformationPlanRequest') AND "miq_requests"."id" = $1 LIMIT $2 [["id", 18], ["LIMIT", 1]]
ServiceTemplateProvisionRequest Inst Including Associations (44.6ms - 1rows)| def ==(o) | |
| o = Rufus::Scheduler.parse(o) | |
| o.seconds == @seconds && | |
| (o.zone == @zone || o.zone.current_period == @zone.current_period) | |
| end | |
| rather than what got merged on Friday: | |
| https://github.com/ManageIQ/manageiq/blob/master/config/initializers/convert_time_to_eo.rb#L6 |
| log/automation.log:[----] E, [2019-07-30T20:38:44.620116 #58697:3fe44cd408e4] ERROR -- : <AEMethod miq_provision_customize_body> The following error occurred during method evaluation: | |
| log/automation.log:[----] E, [2019-07-30T20:38:44.620931 #58697:3fe44cd408e4] ERROR -- : <AEMethod miq_provision_customize_body> ArgumentError: bad argument (expected URI object or URI string) | |
| log/automation.log:[----] E, [2019-07-30T20:38:44.621754 #58697:3fe44cd408e4] ERROR -- : <AEMethod miq_provision_customize_body> (drbunix:///var/folders/n5/1rtj753d4s569vt8njt3_gs80000gn/T/automation_engine20190730-58697-8w69uj) /Users/duhlmann/.rvm/rubies/ruby-2.5.5/lib/ruby/2.5.0/uri/rfc3986_parser.rb:119:in `convert_to_uri' | |
| log/automation.log:[----] E, [2019-07-30T20:38:44.625736 #58697:3fe44cd408e4] ERROR -- : Method STDERR: (drbunix:///var/folders/n5/1rtj753d4s569vt8njt3_gs80000gn/T/automation_engine20190730-58697-8w69uj) /Users/duhlmann/.rvm/rubies/ruby-2.5.5/lib/ruby/2.5.0/uri/rfc3986_parser.rb:119:in `convert_to_uri': bad argum |