Fo example, this piece of code in rails:
t.string :receipt_number
t.timestamp :transaction_timestamp
t.string :transaction_type
t.decimal :cash_amount
t.decimal :card_amount
Now, I want new code should be:
t.string :receipt_number
t.timestamp :transaction_timestamp
t.string :transaction_type
t.decimal :cash_amount
t.decimal :card_amount
I have tried align left/right/center, but It seems not work.
first case:
t.string: receipt_number
t.timestamp: transaction_timestamp
t.string: transaction_type
t.decimal: cash_amount
t.decimal: card_amount
t.decimal: voucher_amount
t.decimal: total_amount
t.int: sa_id
t.string: sa_name
Second case:
t.string: receipt_number
t.timestamp: transaction_timestamp
t.string: transaction_type
t.decimal: cash_amount
t.decimal: card_amount
t.decimal: voucher_amount
t.decimal: total_amount
t.int: sa_id
t.string: sa_name
How can I make alignment as expected code.