It's simple: I want to remove NOT NULL from the field, create a migration, ala
class Remove5NullFromUsers < ActiveRecord::Migration def change change_column :users, :email, :string, :null => true, :default => '' end end
This is a devise tablet, as a result, an error:
undefined method `to_sym' for nil:NilClass/Library/Ruby/Gems/2.0.0/gems/activerecord-4.1.6/lib/active_record/connection_adapters/abstract/schema_definitions.rb:216:in `column'
I already broke my head, I can not understand what I am doing wrong? thank
nil
. However, you cannot make themodify column
when working with SQLite. - etkichange_column
trying to do. - etki