DEV Community

jeann
jeann

Posted on

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.

Oldest comments (0)