# File lib/puppet/rails.rb, line 113
113:   def self.teardown
114:     raise Puppet::DevError, "No activerecord, cannot init Puppet::Rails" unless Puppet.features.rails?
115: 
116:     Puppet.settings.use(:master, :rails)
117: 
118:     begin
119:       ActiveRecord::Base.establish_connection(database_arguments)
120:     rescue => detail
121:       puts detail.backtrace if Puppet[:trace]
122:       raise Puppet::Error, "Could not connect to database: #{detail}"
123:     end
124: 
125:     ActiveRecord::Base.connection.tables.each do |t|
126:       ActiveRecord::Base.connection.drop_table t
127:     end
128:   end