Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pg_assistant

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pg_assistant

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

PgAssistant

Adds methods to ActiveRecord::Migration to create and manage database functions in Rails. I took the idea from a project Scenic.

Installation

Add this line to your application's Gemfile:

gem 'pg_assistant'

Setup config

PgAssistant.configure do |config|
  config.functions_directory_path = '<your path>' # by default db/functions
end

Usage

Create or update function:

rails generate pg_assistant:function increment

# => create: db/functions/increment_v01.sql
# => create: db/functions/20140803191158_create_increment.rb

rails generate pg_assistant:function increment

# => create: db/functions/increment_v02.sql
# => create: db/functions/20140804191158_update_increment_to_version_2.rb

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 13 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc