db/migrate/20080825105417_add_currency_to_account.rb
AddCurrencyToAccount#self.down has the variable name 't' Open
Open
change_table :contracts do |t|
t.string :currency, :default => 'EUR'
end
change_table :accounts do |t|
- Read upRead up
- Exclude checks
An Uncommunicative Variable Name
is a variable name that doesn't communicate its intent well enough.
Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.
AddCurrencyToAccount#self.up has the variable name 't' Open
Open
change_table :accounts do |t|
t.string :currency
end
change_table :contracts do |t|
- Read upRead up
- Exclude checks
An Uncommunicative Variable Name
is a variable name that doesn't communicate its intent well enough.
Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.