[Ror-es] crear primary key

Miguel Angel Calleja Lázaro mangelcl at yahoo.es
Mon Dec 4 12:59:37 GMT 2006


para hacer las relaciones has_many_belongs_to me tendría que crear la 
tabla intermedia, cómo puedo crear los primary key para prod1 y prod2?

 def self.up
    create_table :prod_prod, :id=>false do |t|
      t.column :prod1, :integer
      t.column :prod2, :integer    
    end  
  end

  def self.down
    drop_table :prod_prod
  end

		
______________________________________________ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com


More information about the Ror-es mailing list