Generate Migration with Rails

Note for me! With this command it is possible to generate a migration:

rails generate migration add_email_uniqueness_index

This will generate a file like this:


With this command all migration scripts will be executed.

rake db:migrate

Published by Robert Reiz

CEO @ VersionEye. Passionated software developer since 1998.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: