<commit_before>= PgAssets

This is a way to manage your postgresql assets.  It creates an assets.sql file which contains all of your views, triggers, and functions.  This file is managed alongside your `schema.rb` file.

## BUT WHY
There are three reasons.

### `structure.sql` is a pain
Sure you can use `structure.sql` and deal with the weird whitespace issues the pg_dump creates.  But this cooler.  

### Tracking changes becomes easy
With a discrete `assets.sql` file, you can see changes to your assets through time, without trudging through migrations to piece together a partial history at best.

### Some assets are special
Have you ever had trouble managing a table that is used in a view?  Well now you can use the `touching_view` helper!

## HOW DO I USE IT
Its pretty painless.  

0. Make sure your rails project uses postgresql
1. Add the gem to your Gemfile
2. `rake schema:dump`
3. check in your new file, `db/assets.sql`.<commit_msg>Add build status to readme<commit_after>= PgAssets

This is a way to manage your postgresql assets.  It creates an assets.sql file which contains all of your views, triggers, and functions.  This file is managed alongside your `schema.rb` file.

[![Build Status](https://travis-ci.org/forgottentea/pg_assets.svg?branch=master)](https://travis-ci.org/forgottentea/pg_assets)

## BUT WHY
There are three reasons.

### `structure.sql` is a pain
Sure you can use `structure.sql` and deal with the weird whitespace issues the pg_dump creates.  But this cooler.  

### Tracking changes becomes easy
With a discrete `assets.sql` file, you can see changes to your assets through time, without trudging through migrations to piece together a partial history at best.

### Some assets are special
Have you ever had trouble managing a table that is used in a view?  Well now you can use the `touching_view` helper!

## HOW DO I USE IT
Its pretty painless.  

0. Make sure your rails project uses postgresql
1. Add the gem to your Gemfile
2. `rake schema:dump`
3. check in your new file, `db/assets.sql`.
{'fraction_non_alphanumeric': 0.07051909892262488, 'fraction_numerical': 0.0039177277179236044, 'mean_word_length': 4.120300751879699, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '278316', 'n_tokens_mistral': 584, 'n_tokens_neox': 578, 'n_words': 305}