Hello. I have my rb file:
class CreateDepartamentos < ActiveRecord::Migration
def self.up
create_table :departamentos, :id=>null do |t|
t.string :cvedept, :limit=>10, :null=>false
t.string :desdept, :limit=>20, :null=>false
t.timestamps
end
end
def self.down
drop_table :departamentos
end
end
but when i try with a new record i get the next error:
Unown columno "departamento.id" in table "departamentos".
but i dont have the field "id" in my table.
Help please!.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---