search for: userrol

Displaying 3 results from an estimated 3 matches for "userrol".

Did you mean: userrole
2007 May 17
0
MySQL set data type
I have a legacy database table I''m working with in Rails and one of the fields is the MySQL set field type, like so: `userRoles` set(''CEO'',''President'',''Vice President'',''Sales Manager'') When I access the table with Active Record I only get an integer value for this field, which I think is the raw format MySQL uses to store the set values. Does anyone...
2010 Nov 30
4
Cucumber+Capybara rails 3 issue (Don't know where exactly)
...IN Person Load (0.9ms) SELECT "people"."id", "people"."first", "people"."last", "people"."entity_id", "people"."user_id" FROM "people" WHERE ("people".user_id = 1061) LIMIT 1 UserRole Load (6.1ms) SELECT DISTINCT "user_roles".role_name FROM "user_roles" WHERE ("user_roles".user_id = 1061) SQL (1.5ms) UPDATE "users" SET "emails_delivery_period" = ''--- :daily_logs: :immediately :homework: :immediately :events: :immedi...
2010 Jun 03
2
creating fixtures for has_many :through
...ado: ==== The models: class User < ActiveRecord::Base has_many :user_roles, :dependent => :destroy has_many :roles, :through => :user_roles end class Role < ActiveRecord::Base has_many :user_roles, :dependent => :destroy has_many :users, :through => :user_roles end class UserRole < ActiveRecord::Base belongs_to :role belongs_to :user end ==== The schema: create_table "users", :force => true do |t| t.string "name", :default => "", :null => false t.string "email", :default =&gt...