Sha256: fbe461e86eba6c48db73738ac66ed196d293938a1f0829967029128a91f0dd68

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 KB

Contents

# activerecord-mysql-pkdump

Dump the type information of a non-standard primary key.

[![Gem Version](https://badge.fury.io/rb/activerecord-mysql-pkdump.svg)](http://badge.fury.io/rb/activerecord-mysql-pkdump)
[![Build Status](https://travis-ci.org/winebarrel/activerecord-mysql-pkdump.svg?branch=master)](https://travis-ci.org/winebarrel/activerecord-mysql-pkdump)
[![Coverage Status](https://coveralls.io/repos/winebarrel/activerecord-mysql-pkdump/badge.png?branch=master)](https://coveralls.io/r/winebarrel/activerecord-mysql-pkdump?branch=master)

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'activerecord-mysql-pkdump'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install activerecord-mysql-pkdump

## Usage

```ruby
require 'active_record'
require 'activerecord-mysql-pkdump'

ActiveRecord::Base.establish_connection(
  adapter: 'mysql2',
  database: '...',
)

ActiveRecord::SchemaDumper.dump
#=> ...
#   create_table "items", primary_key: "my_id", id: "bigint(20) PRIMARY KEY auto_increment", force: true do |t|
#     ...
#   end
#   ...
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activerecord-mysql-pkdump-0.1.0 README.md