Merge migrations
This commit is contained in:
parent
d0d3ff5e1f
commit
550fe2d447
2 changed files with 1 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
Reference in a new issue