Re: [Rails] db:migrate unknown attribute on insert via migration

2019-03-27 Thread Eito Katagiri
You need to call .reset_column_information in third migration. Please refer https://api.rubyonrails.org/classes/ActiveRecord/ModelSchema/ClassMethods.html#method-i-reset_column_information for details. You can insert and update data in migration, but you might want to consider using db/seeds.rb in

Re: [Rails] Gem dependency issue

2015-09-28 Thread Eito Katagiri
Hi, Before using `gon.variable`, do you call `include_gon` somewhere in your view? HTH, :eito On Tue, Sep 29, 2015 at 6:01 AM Colin Law wrote: > I am developing a rails gem. It uses the gon gem so in the gemspec > file I have included > > spec.add_dependency 'gon' > > Then in the Gemfile for