If you want table names to be singular instead of plural, you can set the configuration parameter pluralize_table_names: : Assumption from ActiveRecord « ActiveRecord « Ruby






If you want table names to be singular instead of plural, you can set the configuration parameter pluralize_table_names:


ActiveRecord::Base.pluralize_table_names = false

 

Related examples in the same category

1.ActiveRecord infers database table names based on class names.
2.id is default for autoincrease