So I'm trying to rough out a design in Ruby, and so I ran
ruby script/generate scaffold item name:string description:text model:string manufacturers_name:string category:string weight:decimal upc:string ebay_cat_id:string blacklist:bool in_discovery:bool archived:bool
The only problem is that none of the bool fields are on the model. If I use ruby script/consol and run
item = Item.new
I get
#<Item id: nil, name: nil, description: nil, model: nil, manufacturers_name: nil, category: nil, weight: nil, upc: nil, ebay_cat_id: nil, created_at: nil, updated_at: nil>
Is there a limit to how many fields it will show on the object? I know the fields were created in the database... double checked that.
Come to think of it the date timestamps aren't on the object either. Any hints for me? Do I have to manually write accessors for these or what?