aboutsummaryrefslogtreecommitdiff
path: root/databases/rubygem-activerecord5
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2019-08-31 21:57:04 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2019-08-31 21:57:04 +0000
commitd219edabb620a6a45dc28b781e77c10c568301c2 (patch)
treebcdfdafb6c882d09131dd2a7d4b99e7b0a118a12 /databases/rubygem-activerecord5
parentc9afce1e74a93855bc747e55818ee9f81e16cd08 (diff)
downloadports-d219edabb620a6a45dc28b781e77c10c568301c2.tar.gz
ports-d219edabb620a6a45dc28b781e77c10c568301c2.zip
Update pkg-descr
Notes
Notes: svn path=/head/; revision=510430
Diffstat (limited to 'databases/rubygem-activerecord5')
-rw-r--r--databases/rubygem-activerecord5/pkg-descr16
1 files changed, 11 insertions, 5 deletions
diff --git a/databases/rubygem-activerecord5/pkg-descr b/databases/rubygem-activerecord5/pkg-descr
index 86cdafa605bb..29c7987b2296 100644
--- a/databases/rubygem-activerecord5/pkg-descr
+++ b/databases/rubygem-activerecord5/pkg-descr
@@ -1,8 +1,14 @@
-Action Record
+Active Record connects classes to relational database tables to establish an
+almost zero-configuration persistence layer for applications. The library
+provides a base class that, when subclassed, sets up a mapping between the new
+class and an existing table in the database. In the context of an application,
+these classes are commonly referred to as models. Models can also be connected
+to other models; this is done by defining associations.
-In Rails, the model is handled by what's called a object-relational
-mapping layer entitled Active Record. This layer allows you to present
-the data from database rows as objects and embellish these data objects
-with business logic methods.
+Active Record relies heavily on naming in that it uses class and association
+names to establish mappings between respective database tables and foreign key
+columns. Although these mappings can be defined explicitly, it's recommended to
+follow naming conventions, especially when getting started with the library.
WWW: https://rubyonrails.org/
+WWW: https://github.com/rails/rails/tree/master/activerecord