This project is archived and is in readonly mode.

#3223 ✓stale
Kristian Hellquist

schema.rb generation sets :id => false

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

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)

Comments and changes to this ticket

  • CancelProfileIsBroken

    CancelProfileIsBroken September 25th, 2009 @ 12:03 PM

    • Tag changed from 2.3.4 to 2.3.4, bugmash
  • Dennis Bulgatz

    Dennis Bulgatz September 29th, 2009 @ 10:17 PM

    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)

  • Rizwan Reza

    Rizwan Reza February 12th, 2010 @ 12:46 PM

    • Tag changed from 2.3.4, bugmash to 2.3.4
  • Ryan Bigg

    Ryan Bigg October 11th, 2010 @ 02:07 AM

    • State changed from “new” to “needs-more-info”
    • Importance changed from “” to “”

    Please add steps to reproduce this.

  • Ryan Bigg

    Ryan Bigg October 19th, 2010 @ 08:24 AM

    • Tag cleared.

    Automatic cleanup of spam.

  • Santiago Pastorino

    Santiago Pastorino February 9th, 2011 @ 12:31 AM

    • 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.

  • Santiago Pastorino

    Santiago Pastorino February 9th, 2011 @ 12:31 AM

    • State changed from “open” to “stale”

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages