I want to delete my project, how do I delete my table inside my sqlite
database?
Thanks
I want to delete my project, how do I delete my table inside my sqlite
database?
Thanks
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 C.
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 C. [email protected]
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
\migrationsOn Jun 1, 5:41�pm, Zayd C. [email protected]
Thanks guys for your help, got things squared away.
Kindest Regards
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs