---
name: "Jifty::Schema"
section: "3pm"
platform: "linux"
package: "libjifty-perl"
version: "1.10518+dfsg-2"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/Jifty::Schema"
---

# Jifty::Schema(3pm)

generates and upgrades your application's schema

## NAME

Jifty::Schema - generates and upgrades your application's schema

### new

Returns a new Jifty::Schema. Takes no arguments. Will automatically figure out and initialize the models defined in the application's source.

### \_init\_model\_list

Reads in our application class from the config file and finds all our application's models.

### models

Returns a list of Models available to your application.  This includes your Models, Collections and those that come from core Jifty and plugins.

Unfortunately, this list does not contain any of the PubSub Models

### serialize\_current\_schema

Returns a serialization of the models in the app

### upgrade\_schema

Looks at the current schema as defined by the source code and the database and updates the database by adding, dropping, and renaming columns.

### run\_upgrade\_rules rule\_name

This method runs all upgrade rules for the rule named `"rule_name"`.

### connect\_to\_db\_for\_management

Returns a database handle suitable for direct manipulation.
