Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

[Spike] CirculationRules and ItemType models to align with Discovery #477

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and releases in NEOSDiscovery project adheres to [Semantic Versioning](http://se

## [Unreleased]

### Added
- CirculationRules and ItemType models to align with Discovery []()

## [1.0.66] - 2021-01-13

### Changed
Expand Down
2 changes: 2 additions & 0 deletions app/models/circulation_rule.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class CirculationRule < ActiveRecord::Base
end
2 changes: 2 additions & 0 deletions app/models/item_type.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class ItemType < ActiveRecord::Base
end
9 changes: 9 additions & 0 deletions db/migrate/20210129164841_create_item_types.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class CreateItemTypes < ActiveRecord::Migration[5.2]
def change
create_table :item_types do |t|
t.string :short_code
t.string :name
t.timestamps null: false
end
end
end
10 changes: 10 additions & 0 deletions db/migrate/20210129164854_create_circulation_rules.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class CreateCirculationRules < ActiveRecord::Migration[5.2]
def change
create_table :circulation_rules do |t|
t.string :short_code
t.string :name

t.timestamps null: false
end
end
end