minerva 0.1.19 → 0.1.20

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4c7bbad76531f040e4d0c2c0301942a73c69198
4
- data.tar.gz: 07f17e5d65910a7ee049d9466605ee34c82f087b
3
+ metadata.gz: de2b876054355c936f20d9dedbcfecaee95284e1
4
+ data.tar.gz: af04f7ece6904786779670aad3f7107e3e236511
5
5
  SHA512:
6
- metadata.gz: 02e92d2823d359557df928f0b8d7c8f6876525590d23602bfa9503b15f6103d7f024240c85f56fe4ae22771168a2a4a2a39ed7b8ae2411375d6bafebfaf41ef6
7
- data.tar.gz: 9996aefccf40f59ef7197a3e6b6258188e20e2b93ea28ce860ffe7ad4edf75770b7e680a6ad2115c54c30c5e403957b2f2f3003f3bdbaa4278323bcd2bf917f1
6
+ metadata.gz: ea42434b889a45c0444be4602f82729f6948f277a75e80d8ebcd3a7246a3432cf9df92ee9b6dc4f37d69e4dd4b1d6f33a76f3f1390046dbf60b3e28a41afe268
7
+ data.tar.gz: 71052d88693f796ad20edec25846a57d0ee445b6e7a317fb755eaa34d938ccdc456c703deb7abb491c972ff185de0e2c035b67267d344d8acbf38de9429a36cb
@@ -2,10 +2,12 @@ class CreateMinervaAssignments < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  create_table :minerva_assignments do |t|
4
4
  t.string :title
5
- t.references :interface, foreign_key: true
6
5
  t.boolean :automated
6
+ t.integer :interface_id
7
7
 
8
8
  t.timestamps
9
9
  end
10
+ add_foreign_key :minerva_assignments, :minerva_interfaces, column: :interface_id
11
+ add_index :minerva_assignments, :interface_id
10
12
  end
11
13
  end
@@ -5,8 +5,8 @@ class CreateMinervaStates < ActiveRecord::Migration[5.2]
5
5
  t.integer :user_id
6
6
  t.integer :role_id
7
7
  t.integer :work_id
8
- t.references :assignment, foreign_key: true
9
- t.references :status, foreign_key: true
8
+ t.integer :minerva_assignment_id
9
+ t.integer :minerva_status_id
10
10
 
11
11
  t.timestamps
12
12
  end
@@ -14,5 +14,10 @@ class CreateMinervaStates < ActiveRecord::Migration[5.2]
14
14
  add_index :minerva_states, :user_id
15
15
  add_index :minerva_states, :role_id
16
16
  add_index :minerva_states, :work_id
17
+
18
+ add_foreign_key :minerva_states, :minerva_assignments, column: :minerva_assignment_id
19
+ add_index :minerva_states, :minerva_assignment_id
20
+ add_foreign_key :minerva_states, :minerva_statuses, column: :minerva_status_id
21
+ add_index :minerva_states, :minerva_status_id
17
22
  end
18
23
  end
@@ -1,3 +1,3 @@
1
1
  module Minerva
2
- VERSION = '0.1.19'
2
+ VERSION = '0.1.20'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minerva
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cliff