Skip to content

Commit

Permalink
Remove role
Browse files Browse the repository at this point in the history
  • Loading branch information
dgcliff committed Nov 6, 2019
1 parent 802f52a commit 3e9fe2f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
minerva (0.1.30)
minerva (0.1.31)
rails (> 5.2)

GEM
Expand Down
4 changes: 0 additions & 4 deletions app/models/minerva/role.rb

This file was deleted.

1 change: 0 additions & 1 deletion app/models/minerva/state.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ class State < ApplicationRecord

belongs_to :interface, optional: true
belongs_to :user, optional: true
belongs_to :role
belongs_to :work

belongs_to :creator, class_name: "Minerva::User"
Expand Down
7 changes: 7 additions & 0 deletions db/migrate/20191106053529_remove_role.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class RemoveRole < ActiveRecord::Migration[6.0]
def change
remove_index :minerva_states, :role_id
remove_column :minerva_states, :role_id
drop_table :minerva_roles
end
end
2 changes: 1 addition & 1 deletion lib/minerva/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Minerva
VERSION = '0.1.30'
VERSION = '0.1.31'
end

0 comments on commit 3e9fe2f

Please sign in to comment.