Skip to content

apiqcms/kms_models

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6278f32 · Feb 9, 2018

History

50 Commits
Feb 9, 2018
Oct 1, 2016
Jan 22, 2018
Jan 22, 2018
Feb 9, 2018
Jan 22, 2018
Mar 30, 2017
Aug 2, 2017
Feb 9, 2018
Nov 15, 2016
Feb 9, 2017
Oct 1, 2016
May 26, 2017
Feb 10, 2017
Feb 9, 2017
Aug 2, 2017

Repository files navigation

KMS Models

Build Status Code Climate

This extension adds "Models" section in KMS and allows to define custom models on-the-fly. Supported fields for definition in Model: String, Text, Checkbox, File, HasMany, BelongsTo. Note that this extension requires at least PostgreSQL 9.2 because of JSON column type.

Installation

  1. Add to Gemfile

     gem "kms_models"
     # or for edge version:
     gem "kms_models", github: "webgradus/kms_models"
    
  2. Run generator:

     rails g kms_models:install
    
  3. Copy migrations:

     rails kms_models:install:migrations
    
  4. Migrate:

     bundle exec rails db:migrate
    
  5. Recompile assets:

     bundle exec rails assets:precompile
    
  6. Restart KMS instance

Getting started

Please watch this video to start using KMS Models:

Getting started with KMS Models extension

Contributing

Please follow CONTRIBUTING.md.