Sha256: 57eb9644a14798818eb3939c3bcadc6a1e4a05a4c6a617b1f5a5860ac0ff1857

Contents?: true

Size: 1 KB

Versions: 4

Compression:

Stored size: 1 KB

Contents

# ActiveRecord automigrations

Create/modify/delete Active Record columns without migrations.
It works with PostgreSQL and SQLite.

## Installation

```
gem 'automigration'
```

## Usage

Add <tt>has_fields</tt> into your models:

``` ruby
class User < ActiveRecord::Base
  has_fields do
    string :name
    integer :login_count
  end
end
```

Fire in console:

```
rake db:migrate
```

To keep some system tables add to <tt>config/application.rb</tt>

```
  config.automigration.system_tables += %w[hits very_system_table]
```

Supported fields:

* belongs_to
* boolean
* date
* datetime
* float
* integer
* string
* text
* time

## Timestamps

By default in models with <tt>has_fields</tt> always columns updated_at and created_at created. To ignore 
use <tt>has_fields(:timestamps => false)</tt>

## Status

[<img src="https://secure.travis-ci.org/boshie/automigration.png"/>](http://travis-ci.org/boshie/automigration)
[<img src="https://gemnasium.com/boshie/automigration.png"/>](http://gemnasium.com/boshie/automigration)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
automigration-1.1.2 README.md
automigration-1.1.1 README.md
automigration-1.1.0 README.md
automigration-1.0.3 README.md