The default scale is 38, and the default precision
is 0.
??? Sybase: The valid values for decimal precision in Sybase are 1 to 38, and the valid values
for decimal scale are 0 to 38. The default scale is 38, and the default precision is 0.
??? OpenBase: The valid values for decimal precision in OpenBase are unspecified.
primary_key(name)
This method adds a new primary key definition to the table; it can be called multiple times.
to_sql()
Returns a String that is the column definitions for the columns in this table concatenated
together. This string and be prepended and appended to generate the final table-creation SQL
statement.
ActiveRecord::Errors
Public Instance Methods
[](attribute)
This method is an alias for on().
APPENDIX ?– ACTIVE RECORD METHODS IN DETAIL 246
add(attribute, msg = @@default_error_messages[:invalid])
This method adds an error message to the specified attribute. The error message will be
returned when you call on(attribute) and will ensure that object.errors[:attribute].empty?
returns false.
Pages:
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542