1 of 1 people found this helpful
So, I just got on with:
if Product.count == 0 ... end
If anyone has a hint on how to connect to the local database and use isTableExist(STRING tableName), let me know!
May be you are checking the property bag table. This will not be a separate table
You can instead check like this
db = Rho::RHO.get_user_db
records = db.executeSql ("select name from sources where name='give_your_table_name'")
puts 'no table exists' if records.empty?