See http://guides.rubyonrails.org/migrations.html, particularly the change_column command

Simon

On Tue, 26 Jan 2010 17:11:41 +0800, eggie5 <egg...@gmail.com> wrote:

I have a column in a postgres database that keeps track of a date, but
for some reason I set it up to use a timestamp, ie. my migration says
t.datetime :start_date but I want to switch this to the date type for
my existing table. How can I do this using migrations?


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

Reply via email to