module ActiveSchema
Constants
- SCHEMAS
Public Class Methods
apply(table = nil)
click to toggle source
# File lib/active_schema.rb, line 4 def apply table = nil schemas = table ? SCHEMAS.select {|t,_| t == table} : SCHEMAS schemas.each_pair do |table, (conn, opts, schema)| Schema.new(conn, table, opts, &schema) end end
Private Instance Methods
apply(table = nil)
click to toggle source
# File lib/active_schema.rb, line 4 def apply table = nil schemas = table ? SCHEMAS.select {|t,_| t == table} : SCHEMAS schemas.each_pair do |table, (conn, opts, schema)| Schema.new(conn, table, opts, &schema) end end