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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de2b876054355c936f20d9dedbcfecaee95284e1
|
4
|
+
data.tar.gz: af04f7ece6904786779670aad3f7107e3e236511
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
9
|
-
t.
|
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
|
data/lib/minerva/version.rb
CHANGED