mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
Merge branch 'master' into denney-new-user-form
Conflicts: db/schema.rb
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
class AlterUserRoles < ActiveRecord::Migration
|
||||
def change
|
||||
rename_table :user_roles, :user_role_joins
|
||||
change_table :user_role_joins do |t|
|
||||
t.rename :role, :role_id
|
||||
t.change :role_id, :integer
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,8 @@
|
||||
class AddRoles < ActiveRecord::Migration
|
||||
def change
|
||||
create_table(:roles) do |t|
|
||||
t.string :role
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AlterUser < ActiveRecord::Migration
|
||||
def change
|
||||
remove_column :users, :user_role_id
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user