mirror of
				https://github.com/fspc/BikeShed-1.git
				synced 2025-10-31 08:55:36 -04:00 
			
		
		
		
	Store role_id as an integer instead of a string
This commit is contained in:
		
							parent
							
								
									8f988b2cf1
								
							
						
					
					
						commit
						f34def2c09
					
				| @ -3,6 +3,7 @@ class AlterUserRoles < ActiveRecord::Migration | |||||||
|     rename_table :user_roles, :user_role_joins |     rename_table :user_roles, :user_role_joins | ||||||
|     change_table :user_role_joins do |t| |     change_table :user_role_joins do |t| | ||||||
|       t.rename :role, :role_id |       t.rename :role, :role_id | ||||||
|  |       t.change :role_id, :integer | ||||||
|     end |     end | ||||||
|   end |   end | ||||||
| end | end | ||||||
|  | |||||||
| @ -155,7 +155,7 @@ ActiveRecord::Schema.define(:version => 20130424005701) do | |||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   create_table "user_role_joins", :force => true do |t| |   create_table "user_role_joins", :force => true do |t| | ||||||
|     t.string   "role_id" |     t.integer  "role_id" | ||||||
|     t.datetime "created_at", :null => false |     t.datetime "created_at", :null => false | ||||||
|     t.datetime "updated_at", :null => false |     t.datetime "updated_at", :null => false | ||||||
|     t.datetime "ends" |     t.datetime "ends" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user