stephencelis / kvc

KVC (Key-Value Configuration): a powerful, transparent way to maintain mutable app settings in the database.

This URL has Read+Write access

stephencelis (author)
Fri Jun 26 05:57:23 -0700 2009
commit  504f9ef42a345823839d2d7fc0520ce90628b8a0
tree    7e1498f8d8ffe9109b787cc3d41b2d905a9295d6
parent  95af3c33e00a34baebaee4d420bdd8b8c10c49ca
kvc / uninstall.rb
100644 10 lines (8 sloc) 0.27 kb
1
2
3
4
5
6
7
8
9
10
require Rails.root.join("config", "environment")
 
if KVC::Settings.table_exists?
  print "Also drop the KVC table? [yN] "
  if STDIN.gets.chomp =~ /^y)/i
    ActiveRecord::Base.connection.drop_table :kvc_settings
    puts "Successfully dropped KVC::Settings."
  end
end