diff --git a/README.md b/README.md new file mode 100644 index 0000000..526406e --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# EnjuInventory +[![CircleCI](https://circleci.com/gh/next-l/enju_inventory.svg?style=svg)](https://circleci.com/gh/next-l/enju_inventory) +[![Coverage Status](https://coveralls.io/repos/github/next-l/enju_inventory/badge.svg?branch=master)](https://coveralls.io/github/next-l/enju_inventory?branch=master) +[![security](https://hakiri.io/github/next-l/enju_inventory/master.svg)](https://hakiri.io/github/next-l/enju_inventory/master) + +This project rocks and uses MIT-LICENSE. + +## 製作者・貢献者 (Authors and contributors) +* [TANABE, Kosuke](https://github.com/nabeta) ([@nabeta](https://twitter.com/nabeta)) +* [Project Next-L](https://www.next-l.jp) ([@ProjectNextL](https://twitter.com/ProjectNextL)) + diff --git a/README.rdoc b/README.rdoc deleted file mode 100644 index f9f6be0..0000000 --- a/README.rdoc +++ /dev/null @@ -1,10 +0,0 @@ -= EnjuInventory -{Build Status}[https://travis-ci.org/next-l/enju_inventory] -{Coverage Status}[https://coveralls.io/github/next-l/enju_inventory?branch=master] -{security}[https://hakiri.io/github/next-l/enju_inventory/master] - -This project rocks and uses MIT-LICENSE. - -== 製作者・貢献者 (Authors and contributors) -* {TANABE, Kosuke}[https://github.com/nabeta] ({@nabeta}[https://twitter.com/nabeta]) -* {Project Next-L}[https://www.next-l.jp] ({@ProjectNextL}[https://twitter.com/ProjectNextL]) diff --git a/spec/dummy/db/migrate/20190311154610_create_periodicals.rb b/spec/dummy/db/migrate/20190311154610_create_periodicals.rb new file mode 100644 index 0000000..061f331 --- /dev/null +++ b/spec/dummy/db/migrate/20190311154610_create_periodicals.rb @@ -0,0 +1,10 @@ +class CreatePeriodicals < ActiveRecord::Migration[5.2] + def change + create_table :periodicals, id: :uuid do |t| + t.text :original_title, null: false + t.references :frequency, foreign_key: true, null: false + + t.timestamps + end + end +end diff --git a/spec/dummy/db/migrate/20190312033839_create_periodical_and_manifestations.rb b/spec/dummy/db/migrate/20190312033839_create_periodical_and_manifestations.rb new file mode 100644 index 0000000..d0cd122 --- /dev/null +++ b/spec/dummy/db/migrate/20190312033839_create_periodical_and_manifestations.rb @@ -0,0 +1,11 @@ +class CreatePeriodicalAndManifestations < ActiveRecord::Migration[5.2] + def change + create_table :periodical_and_manifestations do |t| + t.references :periodical, foreign_key: true, type: :uuid, null: false + t.references :manifestation, foreign_key: true, type: :uuid, null: false + t.boolean :periodical_master, default: false, null: false, index: {where: 'periodical_master IS true', unique: true} + + t.timestamps + end + end +end diff --git a/spec/dummy/db/migrate/20190314151124_add_full_name_translations_to_create.rb b/spec/dummy/db/migrate/20190314151124_add_full_name_translations_to_create.rb new file mode 100644 index 0000000..7097843 --- /dev/null +++ b/spec/dummy/db/migrate/20190314151124_add_full_name_translations_to_create.rb @@ -0,0 +1,7 @@ +class AddFullNameTranslationsToCreate < ActiveRecord::Migration[5.2] + def change + add_column :creates, :full_name_translations, :jsonb, default: {} + add_column :realizes, :full_name_translations, :jsonb, default: {} + add_column :produces, :full_name_translations, :jsonb, default: {} + end +end