Skip to content

r7kamura/scheman-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Rails plugin for Scheman.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published