When running the mongify process database.config translation.rb I reccieve the following error:
Nathans-MBP:Proxama Nathan$ mongify process database.config translation.rb
/Users/Nathan/.rvm/gems/ruby-2.2.4/gems/mongify-1.3.0/lib/mongify/database/column.rb:240:in type_cast': undefined methodtype_cast_from_database' for #ActiveModel::Type::Decimal:0x007fd12ba78d58 (NoMethodError)
from /Users/Nathan/.rvm/gems/ruby-2.2.4/gems/mongify-1.3.0/lib/mongify/database/column.rb:128:in translate' from /Users/Nathan/.rvm/gems/ruby-2.2.4/gems/mongify-1.3.0/lib/mongify/database/table.rb:133:inblock in translate'
from /Users/Nathan/.rvm/gems/ruby-2.2.4/gems/mongify-1.3.0/lib/mongify/database/table.rb:131:in each' from /Users/Nathan/.rvm/gems/ruby-2.2.4/gems/mongify-1.3.0/lib/mongify/database/table.rb:131:intranslate'
from /Users/Nathan/.rvm/gems/ruby-2.2.4/gems/mongify-1.3.0/lib/mongify/translation/process.rb:33:in block (3 levels) in copy_data' from /Users/Nathan/.rvm/gems/ruby-2.2.4/gems/activerecord-5.0.0.1/lib/active_record/result.rb:52:inblock in each'
from /Users/Nathan/.rvm/gems/ruby-2.2.4/gems/activerecord-5.0.0.1/lib/active_record/result.rb:52:in each' from /Users/Nathan/.rvm/gems/ruby-2.2.4/gems/activerecord-5.0.0.1/lib/active_record/result.rb:52:ineach'
from /Users/Nathan/.rvm/gems/ruby-2.2.4/gems/mongify-1.3.0/lib/mongify/translation/process.rb:32:in block (2 levels) in copy_data' from /Users/Nathan/.rvm/gems/ruby-2.2.4/gems/mongify-1.3.0/lib/mongify/database/sql_connection.rb:86:inblock in select_rows'
from /Users/Nathan/.rvm/gems/ruby-2.2.4/gems/activesupport-5.0.0.1/lib/active_support/core_ext/range/each.rb:5:in each' from /Users/Nathan/.rvm/gems/ruby-2.2.4/gems/activesupport-5.0.0.1/lib/active_support/core_ext/range/each.rb:5:ineach'
from /Users/Nathan/.rvm/gems/ruby-2.2.4/gems/mongify-1.3.0/lib/mongify/database/sql_connection.rb:84:in select_rows' from /Users/Nathan/.rvm/gems/ruby-2.2.4/gems/mongify-1.3.0/lib/mongify/translation/process.rb:29:inblock in copy_data'
from /Users/Nathan/.rvm/gems/ruby-2.2.4/gems/mongify-1.3.0/lib/mongify/translation/process.rb:28:in each' from /Users/Nathan/.rvm/gems/ruby-2.2.4/gems/mongify-1.3.0/lib/mongify/translation/process.rb:28:incopy_data'
from /Users/Nathan/.rvm/gems/ruby-2.2.4/gems/mongify-1.3.0/lib/mongify/translation/process.rb:14:in process' from /Users/Nathan/.rvm/gems/ruby-2.2.4/gems/mongify-1.3.0/lib/mongify/cli/command/worker.rb:68:inexecute'
from /Users/Nathan/.rvm/gems/ruby-2.2.4/gems/mongify-1.3.0/lib/mongify/cli/application.rb:28:in execute!' from /Users/Nathan/.rvm/gems/ruby-2.2.4/gems/mongify-1.3.0/bin/mongify:15:in<top (required)>'
from /Users/Nathan/.rvm/gems/ruby-2.2.4/bin/mongify:23:in load' from /Users/Nathan/.rvm/gems/ruby-2.2.4/bin/mongify:23:in'
from /Users/Nathan/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:15:in eval' from /Users/Nathan/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:15:in'
When running the
mongify process database.config translation.rb
I reccieve the following error:Here is a copy of the translation file: