Undefined method table_exists error in Sequel
Thursday, January 28th, 2010I’m trying to set up a Scanty blog, using Christopher Swenson’s scanty_wordpress_import script to import my wordpress entries. I was getting a strange error, that Google didn’t recognize:
./lib/post.rb:7: undefined method `table_exists?' for Post:Class (NoMethodError)
I found the answer in a few Japanese language posts, but since it was a little difficult to decipher, I’m posting the deets here. The solution is simply to install the schema plugin in the Sequel model (Post, in this case):
class Post < Sequel::Model plugin :schema ...