Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Improve schema_dumper handling of :primary_key

#929

When using the composite_primary_keys plugin, the schema_dumper fails to print the primary key. The refactoring in the attached patch maintains the current behavior while allowing composite_primary_keys to enable dumping a multi-value primary key.

Reported by Ryan Carver · August 28th, 2008 @ 11:41 PM

State: invalid
Milestone: 2.x
Assigned to: Pratik Pratik
Importance: none

Activity

  1. josh
    josh
    • State changed from new to open

    December 15th, 2008 @ 08:57 PM

  2. Pratik
    Pratik
    • Assigned user set to Pratik
    • State changed from open to invalid

    This is generating wrong schema.rb when I tried with sqlite3 :

    Before :

    
      create_table "items", :force => true do |t|
        t.string   "name"
        t.datetime "created_at"
        t.datetime "updated_at"
      end
    

    After :

    
      create_table "items", :id => false, :force => true do |t|
        t.string   "name"
        t.datetime "created_at"
        t.datetime "updated_at"
      end
    

    Thanks.

    December 21st, 2008 @ 04:53 PM