create a table named users as described in variable t Or, in a more generic sense, create a table named users with variable t SW Engineer wrote in post #972878: > Following the "Ruby on Rails Tutorial", and under section "6.1.1 > Database migrations" > http://railstutorial.org/chapters/modeling-and-viewing-users-one#top > > There is the following migration: > > class CreateUsers < ActiveRecord::Migration > def self.up > create_table :users do |t| > t.string :name > t.string :email > . > . > . > > How do we read this line in English? > > create_table :users do |t| > > Why should we write the following line with "t."? > > t.string :name > > I know that block variables are used to pass parameters, but what is it > trying to tell us here? > > So the "do |t|" part is actually the part that is confusing me. > > Any clarifications would be appreciated. > > Thanks. -- Posted via http://www.ruby-forum.com/.