aboutsummaryrefslogtreecommitdiff
path: root/app/models/section.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add Classifications and Resource validationshellekin2020-10-091-2/+3
| | | | | | | | | | | | | | | | - Turn `has_and_belongs_to_many` into `has_many :through`: now, resources and sections are related through Classifications. - Refactor usage of jsonb column to use ActiveRecord validations - Attention! store_accessor: NOTE: If you are using structured database data types (eg. PostgreSQL hstore/json, or MySQL 5.7+ json) there is no need for the serialization provided by .store. Simply use .store_accessor instead to generate the accessor methods. Be aware that these columns use a string keyed hash and do not allow access using a symbol. NOTE: The default validations with the exception of uniqueness will work. For example, if you want to check for uniqueness with hstore you will need to use a custom validation to handle it. https://api.rubyonrails.org/classes/ActiveRecord/Store.html
* Add categories, sections, and import datahellekin2020-10-081-0/+1
|
* Fix typohellekin2020-10-081-1/+1
|
* Changed 'has_ony' to 'has_one'Nemael2020-10-081-1/+1
|
* Add model foundation for classificationshellekin2020-10-081-0/+10
Taxonomy > Category > Section This commit adds models for it. https://doc.incommon.cc/#classifications