You cannot recover data, but I assume that you just need a structure?
Check if db/schema.rb . It should contain a definition of the current structure of your table.
You can recreate your entire database with db/schema.rb using rake db:setup . I do not know a method that recreates only one table.
But perhaps you can create a new database using a different name and copy the structure. Or tediously recreate the table yourself, based on what is in db/schema.rb .
source share