Skip to content

Commit

Permalink
:datetime and :time columns allows :precision option [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
kamipo committed May 28, 2019
1 parent 0a87d7c commit 17afd4b
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -518,14 +518,15 @@ def drop_table(table_name, options = {})
# Available options are (none of these exists by default):
# * <tt>:limit</tt> -
# Requests a maximum column length. This is the number of characters for a <tt>:string</tt> column
# and number of bytes for <tt>:text</tt>, <tt>:binary</tt> and <tt>:integer</tt> columns.
# and number of bytes for <tt>:text</tt>, <tt>:binary</tt>, and <tt>:integer</tt> columns.
# This option is ignored by some backends.
# * <tt>:default</tt> -
# The column's default value. Use +nil+ for +NULL+.
# * <tt>:null</tt> -
# Allows or disallows +NULL+ values in the column.
# * <tt>:precision</tt> -
# Specifies the precision for the <tt>:decimal</tt> and <tt>:numeric</tt> columns.
# Specifies the precision for the <tt>:decimal</tt>, <tt>:numeric</tt>,
# <tt>:datetime</tt>, and <tt>:time</tt> columns.
# * <tt>:scale</tt> -
# Specifies the scale for the <tt>:decimal</tt> and <tt>:numeric</tt> columns.
# * <tt>:collation</tt> -
Expand Down

0 comments on commit 17afd4b

Please sign in to comment.