Class: AddDisplayNameToUser

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/spree_cms/install/templates/db/migrate/add_display_name_to_user.rb

Class Method Summary collapse

Class Method Details

.downObject



6
7
8
# File 'lib/generators/spree_cms/install/templates/db/migrate/add_display_name_to_user.rb', line 6

def self.down
  remove_column :users, :display_name
end

.upObject



2
3
4
# File 'lib/generators/spree_cms/install/templates/db/migrate/add_display_name_to_user.rb', line 2

def self.up
    add_column :users, :display_name, :string, :limit => 200
end