Sha256: 025889a4c651c9f53613523a1552a08b3b145d8d785f4f92c436aa5c1b74e0e6
Contents?: true
Size: 495 Bytes
Versions: 7
Compression:
Stored size: 495 Bytes
Contents
class Storey::Hstore def self.install fail Storey::StoreyError, 'You are attempting to install hstore data type, but the hstore schema (where the data type will be installed) is not one of the persistent schemas. Please add hstore to the list of persistent schemas.' unless Storey.persistent_schemas.include?('hstore') Storey.create 'hstore', force: true ActiveRecord::Base.connection.execute "CREATE EXTENSION IF NOT EXISTS hstore SCHEMA #{Storey.suffixify('hstore')}" end end
Version data entries
7 entries across 7 versions & 1 rubygems