I've dropped my table successfully from the database from the console, using
ActiveRecord::Migration.drop_table(:foo)
,
But for some reason the table data still shows in the schema file.
I would like a method to do this without having to manually remove the data, (Doesn't give a proper rails feeling to it.)
Copyright Notice:Content Author:「Spencer Hire」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/24753199/schema-file-ruby-on-rails