DEV Community

jeann
jeann

Posted on

1 1

Rails Migrations

Rails Framework is very interesting, because put layer between programmer and database, you name is ActiveRecord,
very nice library of ruby for manipulate, data, structure of table and manipulate object of database for all Database, example:MySql, Postgresql,
SQLite,Oracle,Sybase,SQL-Server, etc.

For me, the most interesting are the migrations, because, we can control of version of database and this is very importante, for project large.

We can to do, on the console:

Example simple:

Inline rails generate migration Person.

Example Simple, but nice, with this example we can create inmmediately the script for create table on Database:

Inline rails generate migration Person name:string address:string.

ActiveRecord is a ORM ->Object-Rol Modeling and the with more Security.

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay