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.

schema.rb generation sets :id => false

#3223

db/schema.rb sets create_table with :id => false

In rails 2.3.3 it doesn't do it (which is the way I assumes it should work)

Im using jruby1.3.0

activerecord-jdbcmysql-adapter (0.9.1)
jdbc-mysql (5.0.4)

Reported by Kristian Hellquist · September 17th, 2009 @ 02:43 PM

State: stale
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. CancelProfileIsBroken
    CancelProfileIsBroken
    • Tag changed from 2.3.4 to 2.3.4, bugmash

    September 25th, 2009 @ 12:03 PM

  2. Dennis Bulgatz
    Dennis Bulgatz

    Another example of the problem with schema.rb not matching the database. Note that the id is a varchar(29). This breaks ability to load fixtures and run tests.

    create_table "items", :force => true do |t|

    t.string   "pduid",       :limit => 26
    t.string   "item_type",   :limit => 20
    t.integer  "symcat"
    t.string   "status",      :limit => 1
    t.string   "cradle_id",   :limit => 60
    t.string   "name",        :limit => 60
    t.string   "c_key",       :limit => 60
    t.string   "c_group",     :limit => 60
    t.string   "version",     :limit => 3
    t.string   "owner_name",  :limit => 8
    t.integer  "owner_id"
    t.datetime "mod_date"
    t.datetime "cr_date"
    t.string   "baseline",    :limit => 8
    t.integer  "classify"
    t.string   "comment",     :limit => 60
    t.string   "modifier",    :limit => 8
    t.integer  "modifier_id"
    t.string   "latest",      :limit => 1
    

    end

    mysql> desc items;
    +-------------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------------+-------------+------+-----+---------+-------+ | id | varchar(29) | NO | PRI | | | | pduid | varchar(26) | YES | MUL | NULL | | | item_type | varchar(20) | YES | MUL | NULL | | | symcat | int(11) | YES | | NULL | | | status | varchar(1) | YES | | NULL | | | cradle_id | varchar(60) | YES | MUL | NULL | | | name | varchar(60) | YES | | NULL | | | c_key | varchar(60) | YES | | NULL | | | c_group | varchar(60) | YES | | NULL | | | version | varchar(3) | YES | MUL | NULL | | | owner_name | varchar(8) | YES | | NULL | | | owner_id | int(11) | YES | MUL | NULL | | | mod_date | datetime | YES | | NULL | | | cr_date | datetime | YES | | NULL | | | baseline | varchar(8) | YES | | NULL | | | classify | int(11) | YES | | NULL | | | comment | varchar(60) | YES | | NULL | | | modifier | varchar(8) | YES | | NULL | | | modifier_id | int(11) | YES | | NULL | | | latest | varchar(1) | YES | | NULL | | | type | varchar(30) | YES | | NULL | | +-------------+-------------+------+-----+---------+-------+ 21 rows in set (0.00 sec)

    September 29th, 2009 @ 10:17 PM

  3. Rizwan Reza
    Rizwan Reza
    • Tag changed from 2.3.4, bugmash to 2.3.4

    February 12th, 2010 @ 12:46 PM

  4. Ryan Bigg
    Ryan Bigg
    • State changed from new to needs-more-info
    • Importance changed from to

    Please add steps to reproduce this.

    October 11th, 2010 @ 02:07 AM

  5. Ryan Bigg
    Ryan Bigg
    • Tag cleared.

    Automatic cleanup of spam.

    October 19th, 2010 @ 08:24 AM

  6. Santiago Pastorino
    Santiago Pastorino
    • State changed from needs-more-info to open

    This issue has been automatically marked as stale because it has not been commented on for at least three months.

    The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.

    Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.

    February 9th, 2011 @ 12:31 AM

  7. Santiago Pastorino
    Santiago Pastorino
    • State changed from open to stale

    February 9th, 2011 @ 12:31 AM