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

Version Path
storey-0.4.0 lib/storey/hstore.rb
storey-0.3.6 lib/storey/hstore.rb
storey-0.3.5 lib/storey/hstore.rb
storey-0.3.4 lib/storey/hstore.rb
storey-0.3.3 lib/storey/hstore.rb
storey-0.3.1 lib/storey/hstore.rb
storey-0.3.0 lib/storey/hstore.rb