Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `type_to_sql' when using activerecord 4.0.0 #35

Open
spr1te5 opened this issue Oct 2, 2013 · 1 comment
Open

undefined method `type_to_sql' when using activerecord 4.0.0 #35

spr1te5 opened this issue Oct 2, 2013 · 1 comment

Comments

@spr1te5
Copy link

spr1te5 commented Oct 2, 2013

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'

@iamveen
Copy link

iamveen commented Dec 17, 2013

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: '{}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants