DbStructureWriter Installation Add this line to your application's Gemfile: gem 'db_structure_writer' And then execute: $ bundle Or install it yourself as: $ gem install db_structure_writer Usage $ rake db_structure_writer