This is a list of URLs to PostgreSQL EXTENSION repos, listed in alphabetical order of parent repo, with active forks listed under each parent.
⭐️ >= 10 stars
⭐️⭐️ >= 100 stars
⭐️⭐️⭐️ >= 1000 stars
Numbers of stars might not be up-to-date.
| require 'yaml' | |
| require 'logger' | |
| require 'active_record' | |
| namespace :db do | |
| def create_database config | |
| options = {:charset => 'utf8', :collation => 'utf8_unicode_ci'} | |
| create_db = lambda do |config| | |
| ActiveRecord::Base.establish_connection config.merge('database' => nil) |
| # frozen_string_literal: true | |
| # Adds migration and schema.rb support to postgres custom enum types, tested on rails 4.2 | |
| # The implementation is quite fragile against ActiveRecord version upgrades since it touches many core AR classes. | |
| # The following code should be placed in an initializer | |
| # On migrations: | |
| # | |
| # create_enum(:mood, %w(happy great been_better)) | |
| # create_table :person do | |
| # t.enum :person_mood, enum_name: :mood | |
| # end |