diff --git a/CHANGELOG.md b/CHANGELOG.md index ecab01e..9ac2688 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/app/models/circulation_rule.rb b/app/models/circulation_rule.rb new file mode 100644 index 0000000..f2349b0 --- /dev/null +++ b/app/models/circulation_rule.rb @@ -0,0 +1,2 @@ +class CirculationRule < ActiveRecord::Base +end diff --git a/app/models/item_type.rb b/app/models/item_type.rb new file mode 100644 index 0000000..9cf7526 --- /dev/null +++ b/app/models/item_type.rb @@ -0,0 +1,2 @@ +class ItemType < ActiveRecord::Base +end diff --git a/db/migrate/20210129164841_create_item_types.rb b/db/migrate/20210129164841_create_item_types.rb new file mode 100644 index 0000000..a8966fb --- /dev/null +++ b/db/migrate/20210129164841_create_item_types.rb @@ -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 diff --git a/db/migrate/20210129164854_create_circulation_rules.rb b/db/migrate/20210129164854_create_circulation_rules.rb new file mode 100644 index 0000000..5830b47 --- /dev/null +++ b/db/migrate/20210129164854_create_circulation_rules.rb @@ -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