spec/dummy/db/schema.rb in aaf-gumboot-1.0.0.pre.alpha.2 vs spec/dummy/db/schema.rb in aaf-gumboot-1.1.0
- old
+ new
@@ -1,15 +1,17 @@
+# frozen_string_literal: true
+
ActiveRecord::Schema.define(version: 0) do
create_table :roles do |t|
t.string :name, null: false
t.timestamps null: false
end
create_table :permissions do |t|
t.string :value, null: false
t.belongs_to :role, null: false
t.timestamps null: false
- t.index [:role_id, :value], unique: true
+ t.index %i[role_id value], unique: true
end
create_table :api_subjects do |t|
t.string :x509_cn, null: false
t.string :contact_name, null: false