I tried this in my migration:
t.column :password_hash, :char, :limit=>40, :null=>false
but it generate a column of type ‘char(1)’, it seems that
:limit does not take effect. So how can I define a column
of type ‘char(40)’, thanks:)
I tried this in my migration:
t.column :password_hash, :char, :limit=>40, :null=>false
but it generate a column of type ‘char(1)’, it seems that
:limit does not take effect. So how can I define a column
of type ‘char(40)’, thanks:)
Ok, it seems the following works…
t.column :password_hash, ‘char(40)’, :null=>false
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs