Displaying 1 result from an estimated 1 matches for "ilmit".
Did you mean:
lmit
2006 Feb 10
1
Bizarre ActiveRecord::Errors/validation problem
I could be going mad and missing something really obvious here but I''m
getting an unexpected result from the following.
The schema:
create_table :services, :force => true do |t|
t.column :id, :primary_key
t.column :name, :string, :ilmit => 5, :null => false
t.column :port, :integer, :null => false
t.column :status, :string
end
The model:
class Service < ActiveRecord::Base
validates_presence_of :name, :port, :status
end
The unit tests:
class ServiceTest < Test::Unit::TestCase
def test_new_service...