I'm a React, Javascript & Rails full-stack Software Engineer. I have been working remotely for the past two years in a remote village. Before joining as a Software Engineer I founded kwiq - a hyperlocal delivery startup to deliver things in remote villages.
1 minute read
ActiveRecord provides drop_table method to drop a table from database using migration.
Before
If we want to drop multiple tables in one call using drop_table, ActiveRecord did not provide direct support.
So we have to either call drop_table multiple times or use raw SQL.