Jarl Friis
2010-Mar-03 21:26 UTC
ActiveRecord::ConnectionAdapters::Table#index does not generat indexes
Hi, I have created ticket #4101: When using the following syntax for creating indexes in a migration, no indexes are created: create_table :properties do |t| t.string :namespace t.string :name t.string :value t.index [:namespace, :name], :unique => true end However when I use create_table :properties do |t| t.string :namespace t.string :name t.string :value end add_index :properties, [:namespace, :name], :unique => true Things work fine. This has been reproduced on both PostgreSQL and MySQL adapter. Please see http://groups.google.com/group/rubyonrails-talk/msg/e5b9a1fad6ccf79c for the discussion and confirmation. Jarl -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.