Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rafaelp-rafaelp-dbdesigner_generators

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rafaelp-rafaelp-dbdesigner_generators

  • 0.1.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

DBDesigner Generators

DESCRIPTION

This gem generates ActiveRecord Migration files from a DB Designer 4 xml file.

REQUIREMENTS

  • activerecord

INSTALLATION

$ sudo gem sources -a http://gems.github.com (you only have to do this once)
$ sudo gem install rafaelp-dbdesigner_generators

Inset line below in your config/environments/development.rb

require 'dbdesigner_migration_generator'

USAGE

Save you model in db/dbdesigner_model.xml, then run:

$ ruby script/generate dbdesigner_migration [MigrationName] [only|except] [table1] [table2] [table3]

Example 1

$ ruby script/generate dbdesigner_migration CompleteDatabase

Example 2

$ ruby script/generate dbdesigner_migration CreateAccountsAndUsers only accounts users

Example 3

$ ruby script/generate dbdesigner_migration CreateOtherTables except accounts users

Tricks

You can put the magical keyword ignore on first line of table comments, on your model at DB Designer, to automatically ignore the table on migration generation.

LICENSE

DBDesigner Generators is released under the MIT License.

AUTHOR

Rafael Lima

Working at BielSystems and Myfreecomm

Blog: http://rafael.adm.br

Podcast: http://rafael.adm.br/voltandopracasa

Github: http://github.com/rafaelp

Twitter: http://twitter.com/rafaelp

Did you like?

Recommend me at Working With Rails

FAQs

Package last updated on 10 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc