Add decimal schema on docs

Signed-off-by: Purwandi <free6300@gmail.com>
This commit is contained in:
Purwandi 2012-07-27 22:34:41 +07:00
parent 2c6ed23b45
commit c667788be7
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ ## Adding Columns
`$table->string('name', 100);` | VARCHAR equivalent with a length `$table->string('name', 100);` | VARCHAR equivalent with a length
`$table->integer('votes');` | INTEGER equivalent to the table `$table->integer('votes');` | INTEGER equivalent to the table
`$table->float('amount');` | FLOAT equivalent to the table `$table->float('amount');` | FLOAT equivalent to the table
`$table->decimal('amount', 5, 2);` | DECIMAL equivalent with a precision and scale
`$table->boolean('confirmed');` | BOOLEAN equivalent to the table `$table->boolean('confirmed');` | BOOLEAN equivalent to the table
`$table->date('created_at');` | DATE equivalent to the table `$table->date('created_at');` | DATE equivalent to the table
`$table->timestamp('added_on');` | TIMESTAMP equivalent to the table `$table->timestamp('added_on');` | TIMESTAMP equivalent to the table