Socket
Book a DemoInstallSign in
Socket

toastyapps-migratory

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

toastyapps-migratory

0.0.10
bundlerRubygems
Version published
Maintainers
1
Created
Source

h1. Migratory

h2. Usage

Migratory overrides the default rails model migration and gives you the ability to do the following

h3. Specify Default Values

script/generate migration AddAdminToUsers admin:boolean:false

script/generate model User username:string password_encrypted:string email:string is_admin:boolean:false rating:integer:0 role:string:"member"

script/generate resource User username:string password_encrypted:string email:string is_admin:boolean:false rating:integer:0 role:string:"member"

h3. Specify Indexes

script/generate migration AddAdminToUsers *admin:boolean:false

script/generate model User *username:string password_encrypted:string *email:string is_admin:boolean:false

script/generate resource User *username:string password_encrypted:string *email:string is_admin:boolean:false

h3. Specify Limit, Precision, and Scale

script/generate migration AddRoleToUsers *role:string[10]:"member"

script/generate model Product name:string[30] cost:decimal[10,2]:0.00

script/generate resource Product name:string[30] cost:decimal[10,2]:0.00

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.