No commit activity in last 3 years
No release in over 3 years
Dump the type information of a non-standard primary key.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 3.0.0
~> 10.0

Runtime

 Project Readme

activerecord-mysql-pkdump

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

Gem Version Build Status Coverage Status

Installation

Add this line to your application's Gemfile:

gem 'activerecord-mysql-pkdump'

And then execute:

$ bundle

Or install it yourself as:

$ gem install activerecord-mysql-pkdump

Usage

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
#   ...