I want to delete my project, how do I delete my table inside my sqlite database? Thanks -- Posted via http://www.ruby-forum.com/.
ActiveRecord::Base.connection.drop_table :your_table_name - Maurício Linhares http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en) On Mon, Jun 1, 2009 at 6:41 PM, Zayd Connor <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I want to delete my project, how do I delete my table inside my sqlite > database? > > Thanks > -- > Posted via http://www.ruby-forum.com/. > > > >
Or, if you created it with a migration, you can just undo it the same way (the code is already written for you): rake db:migrate:down VERSION=x You can grab the version number from the front of your file name in db \migrations On Jun 1, 5:41 pm, Zayd Connor <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I want to delete my project, how do I delete my table inside my sqlite > database? > > Thanks > -- > Posted viahttp://www.ruby-forum.com/.
Brian wrote:> Or, if you created it with a migration, you can just undo it the same > way (the code is already written for you): > > rake db:migrate:down VERSION=x > > You can grab the version number from the front of your file name in db > \migrations > > On Jun 1, 5:41�pm, Zayd Connor <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>Thanks guys for your help, got things squared away. Kindest Regards -- Posted via http://www.ruby-forum.com/.