activerecord-postgres-array icon indicating copy to clipboard operation
activerecord-postgres-array copied to clipboard

undefined method `type_to_sql' when using activerecord 4.0.0

Open spr1te5 opened this issue 12 years ago • 1 comments

undefined method type_to_sql' for nil:NilClass/home/eug/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-postgres-array-0.0.10/lib/activerecord-postgres-array/activerecord.rb:80:inblock (2 levels) in class:TableDefinition'

spr1te5 avatar Oct 02 '13 11:10 spr1te5

You may have figured this out on your own already, but ActiveRecord 4 has inbuilt support for arrays.

  add_column :users, :emails, :string, array: true, default: '{}'

iamveen avatar Dec 17 '13 21:12 iamveen