ruby on rails - Could not dump table "data" because of following StandardError -


my rails app has remote database, create , store tables independently of app , it's "modelless", don't want or need model or orm tables. access data use simple activerecord::base.connection.execute(query)command.

my schema.rb has lot of commented messages:

# not dump table "geographic_data" because of following standarderror #   unknown type 'geometry(multilinestring,4326)' column 'geom' 

my problem/doubt:

if install activerecord postgis adapter, purge data have in these non-model tables? possible scenario?

in theory should not because run rake db:schema:dump schema, on safe side - better test on staging/development environment.

if not need adapter else schema dumps, or not cover (for example should have triggers/stored functions etc.) - can switch using sql-format rails schema in config/application.rb:

config.active_record.schema_format = :sql 

Comments