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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bece199128061310a649b7d80477b923a8502a9f9efe7df6f17e9d37f6e9949b
4
- data.tar.gz: db6340fe00181947086763792e93cf3d8fca56a5991328b019628e3bf24ea794
3
+ metadata.gz: bc93aa24620735bbd5b60ec1f04b403b60c763104f8ff7822ee72b0040ea4512
4
+ data.tar.gz: 78a88f7d36ba063912fa55956c490336277381172ec09d24c71db5bbd2f1a85e
5
5
  SHA512:
6
- metadata.gz: c06e3fbeffd55dfb00ffcf6e3178bbedfc51cfca7f0537e9b00cb8e50e14f73b3bab386636b0dba1c245098f34509fbdaa0c2151b7001c963b65bf369610bb1c
7
- data.tar.gz: 3e07a46b1045f3d686ec889431194198e7ce5efe85f078b0b787e81ea1d54726aba49b4334eb85aab973e667eafdbbe9d54e6dc3617fafa4e6680701abdf7550
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
- create_table :roles do |t|
4
- t.string :name
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Zizia
4
- VERSION = '4.0.4.alpha.01'
4
+ VERSION = '4.1.0.alpha.01'
5
5
  end
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.alpha.01
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-25 00:00:00.000000000 Z
11
+ date: 2019-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active-fedora