. .}, 216
between clause, 101
BigDecimal class, 206
:binary type, 181
binary_to_string(value), 236
BLOB data type, 16
boolean attribute, 20
Boolean data types, 44
Boolean type, 181
Builder class, 182
building programs, 18??“24
assumptions, 19??“20
coding conventions, 19??“20
objects
relationships among, 22??“24
retrieving from databases, 21??“22
by_other_artist method, 108
C
calculate(operation, column_name, options
= {}), 231??“232
callbacks, 59??“69
callback macros, 61??“63
implementing, 60
overview, 59??“60
types of, 63??“69
after_create, 65
after_destroy, 68??“69
after_find, 63
after_initialize, 64
after_save, 64??“65
after_update, 66
after_validation, 66??“67
after_validation_on_create, 67
after_validation_on_update, 68
before_create, 65
before_destroy, 68
before_save, 64
before_update, 65??“66
before_validation, 66
before_validation_on_create, 67
before_validation_on_update, 67??“68
cattr_accessor method, 63, 190
change_column method, 54
change_column_default(table_name,
column_name, default), 242
change_column(table_name, column_name,
type, options = {}), 242
char type, 181
chars accessor, 204
charset parameter, 12
child? method, 104
:children option, 36
children_count column, 99
children_count method, 104
?– INDEX 270
class methods, 120, 123
class_name( ), 252
:class_name attribute, 77
class_name option, 77
class_name parameter, 107
class_of_active_record_descendant(klass),
224
ClassMethods module, 121
clear( ), 247
clear_active_connections!( ), 216
CLOB data type, 16
clone( ), 226
colorize_logging attribute, 167
column method, 52
Column objects, 114
column parameter, 94
column_for_attribute(attribute_name), 226
column_names( ), 216
column_names array, 116??“117
column(name, type, options = {}), 245??“246
columns( ), 216
columns
adding security to, 213
changing, 53??“54
enum, 213
foreign key, defining, 98
indexing, 54??“55
integer, defining, 94
naming, 212
removing, 53??“54
columns_hash( ), 216
columns(table_name, name = nil), 242
comma separated value (CSV) format,
142??“143, 185??“186
comment association, 77
Comment model class, 103
Comments association, 158
comments table, 174
COMMIT statement, 38, 40
commit_db_transaction( ), 239
composed_of method, 106??“107
composite primary keys, 205
compute_type(type_name), 224
condition_block?(condition), 255
:conditions argument, 115
:conditions array, 114
:conditions option, 28??“29, 36
config directory, 10
configuration options, 164??“173
allow_concurrency attribute, 168??“169
colorize_logging attribute, 167
default_timezone attribute, 167??“168
generate_read_methods attribute, 169
pluralize_table_names attribute, 166??“167
primay_key_prefix_type attribute, 164??“165
schema_format attribute, 169??“170
set_Inheritance_column attribute, 171??“172
set_primary_key attribute, 171
set_sequence_name attribute, 172??“173
set_table_name attribute, 170??“171
table_name_prefix attribute, 165??“166
table_name_suffix attribute, 166
ConfigurationError error, 152
configuring connections to databases, 10??“16
DB2, 11
Firebird, 11??“12
FrontBase, 12
MySQL, 12??“13
OpenBase, 13??“14
Oracle, 14
PostgreSQL, 14??“15
SQL Server, 15??“16
SQLite, 15
Sybase, 16
connected?( ), 217
connection( ), 217, 226
connection_specification.
Pages:
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581