Rails::Generators::Database (original) (raw)

Namespace

Methods

A

B

F

G

H

N

P

S

T

V

Constants

DATABASES = %w( mysql trilogy postgresql sqlite3 mariadb-mysql mariadb-trilogy )

Class Public methods

Source: show | on GitHub

def all @all ||= [ MySQL2.new, PostgreSQL.new, SQLite3.new, MariaDBMySQL2.new, MariaDBTrilogy.new ] end

Source: show | on GitHub

def build(database_name) case database_name when "mysql" then MySQL2.new when "postgresql" then PostgreSQL.new when "trilogy" then Trilogy.new when "sqlite3" then SQLite3.new when "mariadb-mysql" then MariaDBMySQL2.new when "mariadb-trilogy" then MariaDBTrilogy.new else Null.new end end

Instance Public methods

Source: show | on GitHub

def base_package raise NotImplementedError end

Source: show | on GitHub

def build_package raise NotImplementedError end

Source: show | on GitHub

def feature return unless feature_name

{ feature_name => {} } end

Source: show | on GitHub

def feature_name raise NotImplementedError end

Source: show | on GitHub

def volume return unless service

"#{name}-data" end