>From a migration. I want to initialize a new column called "ident" with a string equal to "prec-#{id}" - where id is meant to be the id column of the relevant row. This works:
Precinct.update_all("ident = 'prec-' || id ") I am confused about whether that bit of SQL is being parsed by Rails code, or whether it's given to Sqlite, in which case I am writing a database-dependent bit of code. Thanks for your assistance! Pito -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.