Sha256: 37492851b171bfd9964fa2519818b70897ecf11c4fb1e944eaa99cdc3f12706c

Contents?: true

Size: 455 Bytes

Versions: 1

Compression:

Stored size: 455 Bytes

Contents

#!/usr/bin/env ruby
# rubocop:disable Lint/UselessAssignment

require "bundler/setup"
require "jsonb_accessor"
require "rspec"
require File.expand_path("../../spec/spec_helper.rb", __FILE__)

ActiveRecord::Base.establish_connection(
  adapter: "postgresql",
  database: "jsonb_accessor",
  username: "postgres"
)

class Product < ActiveRecord::Base
  jsonb_accessor :options, title: :string, foo: { bar: { baz: :string } }
end

x = Product.new

Pry.start

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jsonb_accessor-0.2.0 bin/console