Class: AddSocialToUsers
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddSocialToUsers
- Defined in:
- lib/generators/sufia/models/templates/migrations/add_social_to_users.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
8 9 10 11 12 |
# File 'lib/generators/sufia/models/templates/migrations/add_social_to_users.rb', line 8 def self.down remove_column :users, :facebook_handle, :string remove_column :users, :twitter_handle, :string remove_column :users, :googleplus_handle, :string end |
.up ⇒ Object
2 3 4 5 6 |
# File 'lib/generators/sufia/models/templates/migrations/add_social_to_users.rb', line 2 def self.up add_column :users, :facebook_handle, :string add_column :users, :twitter_handle, :string add_column :users, :googleplus_handle, :string end |