This project is archived and is in readonly mode.
schema.rb generation sets :id => false
-
CancelProfileIsBroken
- Tag changed from 2.3.4 to 2.3.4, bugmash
-
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 => 1end
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) -
Ryan Bigg
- State changed from new to needs-more-info
- Importance changed from to
Please add steps to reproduce this.
-
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.
-
Santiago Pastorino
- State changed from open to stale