Closed jrock2004 closed 9 years ago
Use this updated version instead: https://github.com/turgu1/yaml_db
I would actually suggest forking it into your own account so you don't have to worry about them deleting their account (it's happened to me before).
Duplicate of #54 (addressed in #45)
Trying to do a dump and this is what I am getting
C:\Development\rails\automation_metrics_tool>rake db:data:dump --trace * Invoke db:data:dump (first_time) * Invoke environment (first_time) * Execute environment * Execute db:data:dump rake aborted! undefined method
[]=' for #<ActiveRecord::Result:0x47bb570> C:/Ruby200/lib/ruby/gems/2.0.0/gems/yaml_db-0.2.3/lib/serialization_helper.rb:10 8:in
block in unhash_records' C:/Ruby200/lib/ruby/gems/2.0.0/gems/activerecord-4.1.0.rc1/lib/active_record/res ult.rb:55:inblock in each' C:/Ruby200/lib/ruby/gems/2.0.0/gems/activerecord-4.1.0.rc1/lib/active_record/res ult.rb:55:in
each' C:/Ruby200/lib/ruby/gems/2.0.0/gems/activerecord-4.1.0.rc1/lib/active_record/res ult.rb:55:ineach' C:/Ruby200/lib/ruby/gems/2.0.0/gems/yaml_db-0.2.3/lib/serialization_helper.rb:10 7:in
each_with_index' C:/Ruby200/lib/ruby/gems/2.0.0/gems/yaml_db-0.2.3/lib/serialization_helper.rb:10 7:inunhash_records' C:/Ruby200/lib/ruby/gems/2.0.0/gems/yaml_db-0.2.3/lib/yaml_db.rb:47:in
block in dump_table_records' C:/Ruby200/lib/ruby/gems/2.0.0/gems/yaml_db-0.2.3/lib/serialization_helper.rb:18 7:inblock in each_table_page' C:/Ruby200/lib/ruby/gems/2.0.0/gems/yaml_db-0.2.3/lib/serialization_helper.rb:18 3:in
each' C:/Ruby200/lib/ruby/gems/2.0.0/gems/yaml_db-0.2.3/lib/serialization_helper.rb:18 3:ineach_table_page' C:/Ruby200/lib/ruby/gems/2.0.0/gems/yaml_db-0.2.3/lib/yaml_db.rb:46:in
dump_tab le_records' C:/Ruby200/lib/ruby/gems/2.0.0/gems/yaml_db-0.2.3/lib/serialization_helper.rb:16 8:indump_table' C:/Ruby200/lib/ruby/gems/2.0.0/gems/yaml_db-0.2.3/lib/serialization_helper.rb:15 1:in
block in dump' C:/Ruby200/lib/ruby/gems/2.0.0/gems/yaml_db-0.2.3/lib/serialization_helper.rb:14 9:ineach' C:/Ruby200/lib/ruby/gems/2.0.0/gems/yaml_db-0.2.3/lib/serialization_helper.rb:14 9:in
dump' C:/Ruby200/lib/ruby/gems/2.0.0/gems/yaml_db-0.2.3/lib/serialization_helper.rb:14 :indump' C:/Ruby200/lib/ruby/gems/2.0.0/gems/yaml_db-0.2.3/lib/tasks/yaml_db_tasks.rake:2 1:in
block (3 levels) in <top (required)>' C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:236:incall' C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:236:in
block i n execute' C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:231:ineach' C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:231:in
execute ' C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:175:inblock i n invoke_with_call_chain' C:/Ruby200/lib/ruby/2.0.0/monitor.rb:211:in
monsynchronize' C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:168:in `invoke with_call_chain' C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:161:in`invoke'C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:149:in
invoke_task' C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:106:in
block (2 levels) in top_level' C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:106:ineach' C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:106:in
block in top_level' C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:115:inrun_with_threads' C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:100:in
top_level' C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:78:inb lock in run' C:/Ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:165:in
standard_exception_handling'