Sha256: fbf85a3d603e24ec0c58de85fec52157b7e1874f55baa409f39794fde1a28386
Contents?: true
Size: 578 Bytes
Versions: 1
Compression:
Stored size: 578 Bytes
Contents
# frozen_string_literal: true require 'active_record' require 'support/models/user' ActiveRecord::Base.establish_connection( adapter: 'postgresql', host: 'localhost', username: 'postgres', ) ActiveRecord::Base.connection.execute('DROP DATABASE IF EXISTS authorizy_test;') ActiveRecord::Base.connection.execute('CREATE DATABASE authorizy_test;') ActiveRecord::Base.connection.execute('DROP TABLE IF EXISTS users;') ActiveRecord::Schema.define(version: 1) do enable_extension 'plpgsql' create_table :users do |t| t.jsonb 'authorizy', default: {} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
authorizy-0.1.0 | spec/support/schema.rb |