Browse Source

Removing nickname from user

eperez-timeinput
Jason Denney 12 years ago
parent
commit
ff60fdd67f
  1. 1
      app/components/users.rb
  2. 2
      app/models/user.rb
  3. 5
      db/migrate/20130614003934_remove_nickname.rb

1
app/components/users.rb

@ -17,7 +17,6 @@ class Users < Netzke::Basepack::Grid
:username,
:first_name,
:last_name,
:nickname,
:email,
:bike__shop_id
]

2
app/models/user.rb

@ -7,7 +7,7 @@ class User < ActiveRecord::Base
# Setup accessible (or protected) attributes for your model
attr_accessible :email, :password, :password_confirmation, :remember_me,
:first_name, :last_name, :nickname, :bike_id,
:first_name, :last_name, :bike_id,
:user_profiles_attributes, :username
has_many :transactions

5
db/migrate/20130614003934_remove_nickname.rb

@ -0,0 +1,5 @@
class RemoveNickname < ActiveRecord::Migration
def change
remove_column :users, :nickname, :string
end
end
Loading…
Cancel
Save