zizia 4.0.4.alpha.01 → 4.1.0.alpha.01
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/20190919145012_user_roles.rb +10 -8
- data/lib/zizia/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc93aa24620735bbd5b60ec1f04b403b60c763104f8ff7822ee72b0040ea4512
|
4
|
+
data.tar.gz: 78a88f7d36ba063912fa55956c490336277381172ec09d24c71db5bbd2f1a85e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bda1b7bceed90ba1e226a149b37e8959cf5f7f34a6fed99d97aac929b30eaa79b25f4fe12fec4b7f246d2f2b6220e04cd94c6666902e886371e5e458b810554
|
7
|
+
data.tar.gz: 66caf55d975bde3648695878b5269f9eb08daa064acf84e763f6e2ce9571e9d9bb812d96580d03cdc93aeabc0042373c71bfca3e6110dbc4968b9e978ec0c3d4
|
@@ -1,14 +1,16 @@
|
|
1
1
|
class UserRoles < ActiveRecord::Migration[5.0]
|
2
2
|
def up
|
3
|
-
|
4
|
-
|
3
|
+
unless table_exists?(:roles)
|
4
|
+
create_table :roles do |t|
|
5
|
+
t.string :name
|
6
|
+
end
|
7
|
+
create_table :roles_users, :id => false do |t|
|
8
|
+
t.references :role
|
9
|
+
t.references :user
|
10
|
+
end
|
11
|
+
add_index :roles_users, [:role_id, :user_id]
|
12
|
+
add_index :roles_users, [:user_id, :role_id]
|
5
13
|
end
|
6
|
-
create_table :roles_users, :id => false do |t|
|
7
|
-
t.references :role
|
8
|
-
t.references :user
|
9
|
-
end
|
10
|
-
add_index :roles_users, [:role_id, :user_id]
|
11
|
-
add_index :roles_users, [:user_id, :role_id]
|
12
14
|
end
|
13
15
|
|
14
16
|
def down
|
data/lib/zizia/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zizia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.1.0.alpha.01
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Data Curation Experts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active-fedora
|