how can I drop all table data in one hit, from within ruby code
(controller
or model)? (i.e. prior to updating my projections table I need to delete
all
existing data first)
thanks
how can I drop all table data in one hit, from within ruby code
(controller
or model)? (i.e. prior to updating my projections table I need to delete
all
existing data first)
thanks
Are you looking for this:
http://railsapi.org/activerecord-base-delete_all
Basically, delete_all should do what you’re asking.
HTH
On Jun 21, 12:33 am, “Greg H.” [email protected]
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