0.01
No commit activity in last 3 years
No release in over 3 years
Rails plugin for Scheman.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0
>= 0
>= 0
= 2.14.1
= 2.14.1

Runtime

>= 3.0.0
>= 0.0.4
 Project Readme

Scheman::Rails

Rails plugin for Scheman.

Usage

# Gemfile
gem "scheman-rails"
# Write your database schema into db/schema.sql
$ echo '
CREATE TABLE `users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
);
' > db/schema.sql

# Show diff between the current database schema and db/schema.sql
$ rake db:schema:diff

# Apply diff
$ rake db:schema:apply