Sha256: 1c539799a49243a992076cebf0882ccded33c03e98ea2b1c3978994f84bc69b0
Contents?: true
Size: 1.3 KB
Versions: 1
Compression:
Stored size: 1.3 KB
Contents
# Unidom Sequence 序列领域模型引擎 [](http://opensource.org/licenses/MIT) [](https://badge.fury.io/rb/unidom-sequence) [](https://gemnasium.com/github.com/topbitdu/unidom-sequence) Unidom (UNIfied Domain Object Model) is a series of domain model engines. The Sequence domain model engine includes the Sequence model and its relative models. Unidom (统一领域对象模型)是一系列的领域模型引擎。序列领域模型引擎包括序列和与其相关的模型。 ## Recent Update Check out the [Road Map](ROADMAP.md) to find out what's the next. Check out the [Change Log](CHANGELOG.md) to find out what's new. ## Usage in Gemfile ```ruby gem 'unidom-sequence' ``` ## Run the Database Migration ```shell rake db:migrate ``` The migration versions start with 200008. ## Call the Model ```ruby sequence = Unidom::Sequence::Sequence.prefix_is('12345620170101').sequentiality_coded_as('FLNO').first_or_create! next_sequence = sequence.increment! :serial_number next_sequence.serial_number # 1 next_sequence = sequence.increment! :serial_number next_sequence.serial_number # 2 ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-sequence-0.1 | README.md |