Re: [Rails] Composite index via command line migration, different behaviour in file

2011-04-20 Thread Frederick Cheung
On 19 Apr 2011, at 22:13, Federico federico.rot...@gmail.com wrote: Hello everybody, I have a class like this: class Foos ActiveRecord::Migration def self.up create_table :foos,:id = false, do |t| t.references :table1 t.references :table2 t.timestamps end end

Re: [Rails] Composite index via command line migration, different behaviour in file

2011-04-20 Thread Federico Rota
Thanks Fred, at least I'll stop bouncing my head against the wall trying to make my command work! I'll stick with your solution or mine. Il giorno 20/apr/2011, alle ore 09:39, Frederick Cheung frederick.che...@gmail.com ha scritto: On 19 Apr 2011, at 22:13, Federico

[Rails] Composite index via command line migration, different behaviour in file

2011-04-19 Thread Federico
Hello everybody, I have a class like this: class Foos ActiveRecord::Migration def self.up create_table :foos,:id = false, do |t| t.references :table1 t.references :table2 t.timestamps end end def self.down drop_table :foos end end I would like to add a