# File lib/mole/db/migrate.rb, line 74 def migrate_down # Delete the mole_feature table if ActiveRecord::Schema.tables.include?( 'mole_features' ) ActiveRecord::Schema.remove_index( 'mole_features', :name => 'feature_idx' ) ActiveRecord::Schema.drop_table( 'mole_features' ) end # Delete the mole_logs table if ActiveRecord::Schema.tables.include?( 'mole_logs' ) ActiveRecord::Schema.remove_index( 'mole_logs', :name => 'log_feature_idx' ) ActiveRecord::Schema.remove_index( 'mole_logs', :name =>'log_date_idx' ) ActiveRecord::Schema.drop_table( 'mole_logs' ) end end