Class: AddReputationToUsersTable
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddReputationToUsersTable
- Defined in:
- lib/generators/social_engine/user_reputation/templates/add_reputation_to_users_table.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
6 7 8 |
# File 'lib/generators/social_engine/user_reputation/templates/add_reputation_to_users_table.rb', line 6 def self.down remove_column :users, :reputation end |
.up ⇒ Object
2 3 4 |
# File 'lib/generators/social_engine/user_reputation/templates/add_reputation_to_users_table.rb', line 2 def self.up add_column :users, :reputation, :integer end |