ActiveRecordを使うときにはテーブルのカラム名に気を付けよう

カラム名に「type」を使用して怒られました.使ってはいけないもの一覧を貼っておきましょう.

参考 : 保護者の方へ

silence_stream
schema_format
before_validation_on_update
readonly!
save_with_validation!
__send__
save!
before_update
update
methods
colorize_logging
decode_b
attributes_before_type_cast
valid?
instance_values
save_with_transactions!
taint
primary_key_prefix_type
before_save
toggle!
after_validation_on_update
readonly?
subclasses_of
clear_aggregation_cache
save_without_validation!
singleton_methods
hash
after_update
update_attribute_with_validation_skipping
update_attribute
encode64
initialize
send
connection
instance_exec
save_without_transactions!
display
instance_of?
after_save
nil?
unloadable
id_before_type_cast
suppress
validate
clear_association_cache
protected_methods
default_timezone
update_with_callbacks
tainted?
instance_eval
to_param
returning
untaint
kind_of?
table_name_prefix
create_or_update_with_callbacks
valid_with_callbacks?
locking_enabled?
dclone
equal?
quote_with_deprecation
attributes_from_column_definition_with_lock
update_attributes!
save
private_methods
update_without_callbacks
increment
`
attribute_present?
b64encode
quote
with_options
create_without_timestamps
is_a?
configurations
valid_without_callbacks?
freeze
attribute_names
eql?
quoted_id
require_library_or_gem
load
before_destroy
extended_by
id
update_attributes
attributes_from_column_definition
destroy_with_transactions
allow_concurrency
before_validation
public_methods
daemonize
has_attribute?
id=
update_with_timestamps
extend
table_name_suffix
before_create
save_with_validation
require_gem
require
after_destroy
reload
update_with_lock
copy_instance_variables_from
type
to_yaml
to_yaml_style
method
destroy_without_transactions
increment!
instance_variables
lock!
after_validation
frozen?
decrement
to_json
errors
update_without_timestamps
to_a
after_create
blank?
record_timestamps
destroy_with_callbacks
class
silence_warnings
update_attribute_without_validation_skipping
to_yaml_properties
gem
save_with_transactions
transaction
object_id
instance_variable_get
enable_warnings
validate_on_create
generate_read_methods
before_validation_on_create
==
attributes
respond_to_without_attributes?
===
new_record?
to_s
pluralize_table_names
create_with_callbacks
create_or_update
verification_timeout
attributes=
save_without_validation
create_with_timestamps
destroy_without_callbacks
initialize_with_callbacks
taguri
clone
destroy
column_for_attribute
save_without_transactions
to_query
decrement!
=~
instance_variable_set
silence_stderr
after_validation_on_create
lock_optimistically
validate_on_update
remove_subclasses_of
toggle
taguri=
__id__
to_xml
logger
inspect
[]
decode64
create
respond_to?
extend_with_included_modules_from
[]=
dup

追記

コメント欄にてid:ujihisaさんよりご指摘をいただきまして,ソートしたものを載せることにしました! ujihisa++

==                                                                                                                                   
===                                                                                                                                  
=~                                                                                                                                   
[]                                                                                                                                   
[]=                                                                                                                                  
__id__                                                                                                                               
__send__                                                                                                                             
`                                                                                                                                    
after_create                                                                                                                         
after_destroy                                                                                                                        
after_save                                                                                                                           
after_update                                                                                                                         
after_validation                                                                                                                     
after_validation_on_create                                                                                                           
after_validation_on_update                                                                                                           
allow_concurrency                                                                                                                    
attribute_names                                                                                                                      
attribute_present?                                                                                                                   
attributes                                                                                                                           
attributes=                                                                                                                          
attributes_before_type_cast                                                                                                          
attributes_from_column_definition                                                                                                    
attributes_from_column_definition_with_lock                                                                                          
b64encode                                                                                                                            
before_create                                                                                                                        
before_destroy                                                                                                                       
before_save                                                                                                                          
before_update                                                                                                                        
before_validation                                                                                                                    
before_validation_on_create                                                                                                          
before_validation_on_update                                                                                                          
blank?                                                                                                                               
class                                                                                                                                
clear_aggregation_cache                                                                                                              
clear_association_cache                                                                                                              
clone                                                                                                                                
colorize_logging                                                                                                                     
column_for_attribute                                                                                                                 
configurations                                                                                                                       
connection                                                                                                                           
copy_instance_variables_from                                                                                                         
create                                                                                                                               
create_or_update                                                                                                                     
create_or_update_with_callbacks                                                                                                      
create_with_callbacks                                                                                                                
create_with_timestamps                                                                                                               
create_without_timestamps                                                                                                            
daemonize                                                                                                                            
dclone                                                                                                                               
decode64                                                                                                                             
decode_b                                                                                                                             
decrement                                                                                                                            
decrement!                                                                                                                           
default_timezone                                                                                                                     
destroy                                                                                                                              
destroy_with_callbacks                                                                                                               
destroy_with_transactions                                                                                                            
destroy_without_callbacks                                                                                                            
destroy_without_transactions                                                                                                         
display                                                                                                                              
dup                                                                                                                                  
enable_warnings                                                                                                                      
encode64                                                                                                                             
eql?                                                                                                                                 
equal?                                                                                                                               
errors                                                                                                                               
extend                                                                                                                               
extend_with_included_modules_from                                                                                                    
extended_by                                                                                                                          
freeze                                                                                                                               
frozen?                                                                                                                              
gem                                                                                                                                  
generate_read_methods                                                                                                                
has_attribute?                                                                                                                       
hash                                                                                                                                 
id                                                                                                                                   
id=                                                                                                                                  
id_before_type_cast                                                                                                                  
increment                                                                                                                            
increment!                                                                                                                           
initialize                                                                                                                           
initialize_with_callbacks                                                                                                            
inspect                                                                                                                              
instance_eval                                                                                                                        
instance_exec                                                                                                                        
instance_of?                                                                                                                         
instance_values                                                                                                                      
instance_variable_defined?       
instance_variable_get                                                                                                                
instance_variable_set                                                                                                                
instance_variables                                                                                                                   
is_a?                                                                                                                                
kind_of?                                                                                                                             
load                                                                                                                                 
lock!                                                                                                                                
lock_optimistically                                                                                                                  
locking_enabled?                                                                                                                     
logger                                                                                                                               
method                                                                                                                               
methods                                                                                                                              
new_record?                                                                                                                          
nil?                                                                                                                                 
object_id                                                                                                                            
pluralize_table_names                                                                                                                
primary_key_prefix_type                                                                                                              
private_methods                                                                                                                      
protected_methods                                                                                                                    
public_methods                                                                                                                       
quote                                                                                                                                
quote_with_deprecation                                                                                                               
quoted_id                                                                                                                            
readonly!                                                                                                                            
readonly?                                                                                                                            
record_timestamps                                                                                                                    
reload                                                                                                                               
remove_subclasses_of                                                                                                                 
require                                                                                                                              
require_gem                                                                                                                          
require_library_or_gem                                                                                                               
respond_to?                                                                                                                          
respond_to_without_attributes?                                                                                                       
returning                                                                                                                            
save                                                                                                                                 
save!                                                                                                                                
save_with_transactions                                                                                                               
save_with_transactions!                                                                                                              
save_with_validation                                                                                                                 
save_with_validation!                                                                                                                
save_without_transactions                                                                                                            
save_without_transactions!                                                                                                           
save_without_validation                 
save_without_validation!                                                                                                             
schema_format                                                                                                                        
send                                                                                                                                 
silence_stderr                                                                                                                       
silence_stream                                                                                                                       
silence_warnings                                                                                                                     
singleton_methods                                                                                                                    
subclasses_of                                                                                                                        
suppress                                                                                                                             
table_name_prefix                                                                                                                    
table_name_suffix                                                                                                                    
taguri                                                                                                                               
taguri=                                                                                                                              
taint                                                                                                                                
tainted?                                                                                                                             
to_a                                                                                                                                 
to_json                                                                                                                              
to_param                                                                                                                             
to_query                                                                                                                             
to_s                                                                                                                                 
to_xml                                                                                                                               
to_yaml                                                                                                                              
to_yaml_properties                                                                                                                   
to_yaml_style                                                                                                                        
toggle                                                                                                                               
toggle!                                                                                                                              
transaction                                                                                                                          
type                                                                                                                                 
unloadable                                                                                                                           
untaint                                                                                                                              
update                                                                                                                               
update_attribute                                                                                                                     
update_attribute_with_validation_skipping                                                                                            
update_attribute_without_validation_skipping                                                                                         
update_attributes                                                                                                                    
update_attributes!                                                                                                                   
update_with_callbacks                                                                                                                
update_with_lock                                                                                                                     
update_with_timestamps                                                                                                               
update_without_callbacks                                                                                                             
update_without_timestamps                                                                                                            
valid?
valid_with_callbacks?                                                                                                                
valid_without_callbacks?                                                                                                             
validate                                                                                                                             
validate_on_create                                                                                                                   
validate_on_update                                                                                                                   
verification_timeout                                                                                                                 
with_options

これでいいかな!