undefined method `type_to_sql' when using activerecord 4.0.0
spr1te5 opened this issue · 1 comments
spr1te5 commented
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:in
block (2 levels) in class:TableDefinition'
iamveen commented
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: '{}'