1
0
Fork 0

Merge migrations

This commit is contained in:
Alex Kotov 2019-07-20 05:10:44 +05:00
parent d0d3ff5e1f
commit 550fe2d447
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 1 additions and 8 deletions

View file

@ -48,7 +48,7 @@ class DeviseCreateUsers < ActiveRecord::Migration[5.2]
create_table :roles do |t|
t.timestamps null: false
t.string :name
t.string :name, null: false
t.references :resource, polymorphic: true
t.index %i[name resource_type resource_id], unique: true

View file

@ -1,7 +0,0 @@
# frozen_string_literal: true
class RequiredNameOfRoles < ActiveRecord::Migration[5.2]
def change
change_column :roles, :name, :string, null: false
end
end