FIX: bypass views

This commit is contained in:
Sam 2014-07-14 08:44:26 +10:00
parent b2d17a09ff
commit a5ad2411ef
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class DiscourseCLI < Thor
sql = "SELECT table_name, column_name sql = "SELECT table_name, column_name
FROM information_schema.columns FROM information_schema.columns
WHERE table_schema='public' and (data_type like 'char%' or data_type like 'text%')" WHERE table_schema='public' and (data_type like 'char%' or data_type like 'text%') and is_updatable = 'YES'"
cnn = ActiveRecord::Base.connection.raw_connection cnn = ActiveRecord::Base.connection.raw_connection