diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2019-09-01 05:57:09 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2019-09-01 05:57:09 +0800 |
commit | 93b159142c11044dea008f36bfe50f8c61d0611a (patch) | |
tree | b3110e1b8df6e4725d420851b462fbc295b6a247 /databases | |
parent | d432c5c8918b48e9efff13373318a90a196c9b2f (diff) | |
download | freebsd-ports-gnome-93b159142c11044dea008f36bfe50f8c61d0611a.tar.gz freebsd-ports-gnome-93b159142c11044dea008f36bfe50f8c61d0611a.tar.zst freebsd-ports-gnome-93b159142c11044dea008f36bfe50f8c61d0611a.zip |
Update pkg-descr
Diffstat (limited to 'databases')
-rw-r--r-- | databases/rubygem-activerecord50/pkg-descr | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/databases/rubygem-activerecord50/pkg-descr b/databases/rubygem-activerecord50/pkg-descr index 86cdafa605bb..29c7987b2296 100644 --- a/databases/rubygem-activerecord50/pkg-descr +++ b/databases/rubygem-activerecord50/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 |