Migrations In3 Mins

67 %
33 %
Information about Migrations In3 Mins

Published on May 18, 2008

Author: hiremaga

Source: slideshare.net

Description

The slides from a very short presentation I did at the Melbourne Ruby User Group's Nuby Night.

Migrations

Why Migrations?

Agility

Agility Incrementally improve your schema

$ script/generate migration create_bids

$ script/generate migration create_bids $RAILS_ROOT/db/migrate/001_create_bids.rb

$ rake db:migrate

$ rake db:migrate $ rake db:migrate VERSION=0

Transformations create_table(name, options) drop_table(name) add_column(table_name, column_name, type, options) remove_column(table_name, column_name)

More... rename_table(old_name, new_name) rename_column(table_name, column_name, new_column_name) change_column(table_name, column_name, type, options)

And then some. add_index(table_name, column_names, index_type, index_name) remove_index(table_name, index_name)

I'm Abhi from Cogent Consulting. Thank You.

$RAILS_ROOT/db/migrate/001_create_bids.rb $ rake db:migrate VERSION=N

Add a comment

Related pages

Migration in National Surveys - DRC Migration ...

Migration in National Surveys . Survey Data Catalogue. New Follow how migration is covered in the 2010 round of world censuses. Survey Data Catalogue for ...
Read more

Migration in National Surveys - Child Migration Research ...

The Migration in National Surveys (MiNS) catalogue is designed as a tool for academic and non-academic researchers who wish to use existing large household ...
Read more

UAE Immigration- What you need to know in 30 mins - YouTube

UAE Immigration- What you need to know in 30 mins Santa Fe Relocation Services - Official. ... Does immigration in the UAE seem alien to you?
Read more

China: The largest migration in history | The Economist

China The largest migration in history ... Britain 1 hrs 47 mins ago. Musical innovation: Musicians who keep a-changin' Prospero 2 hrs 15 mins ago.
Read more

What does migration mean? definition, meaning and ...

Definition of migration in the AudioEnglish.org Dictionary. Meaning of migration. What does migration mean? Proper usage and pronunciation (in phonetic ...
Read more

South Africa Immigration- What you need to know in 30 mins ...

Have you ever wondered how the immigration process works when relocating to South Africa? Does South African immigration seem entirely ...
Read more

Irish Naturalisation and Immigration Service Home Page

News for Irish Naturalisation and Immigration Service (INIS).
Read more

Migrate | Define Migrate at Dictionary.com

Migrate definition, to go from one country, region, or place to another. See more. Dictionary.com; ... migration; migration inhibition test; migrational ...
Read more

Spring Migration 2016 - Journey North America Robin News ...

Spring Migration 2016 Watch the spring migration story unfold. Get Ready Track robin spring migration. Weekly Updates Wednesdays, February - May
Read more