Skip to content

undefined method `type_to_sql' when using activerecord 4.0.0 #35

Description

@spr1te5

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'

Activity

  1. iamveen commented on Dec 17, 2013

    @iamveen

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions