Class: RemoveIsAdminPropertyAndAddRoleInstead
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- RemoveIsAdminPropertyAndAddRoleInstead
- Defined in:
- lib/branston/db/migrate/20110408162438_remove_is_admin_property_and_add_role_instead.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
7 8 9 10 |
# File 'lib/branston/db/migrate/20110408162438_remove_is_admin_property_and_add_role_instead.rb', line 7 def self.down add_column :users, :is_admin, :boolean, :default => false remove_column :users, :role end |
.up ⇒ Object
2 3 4 5 |
# File 'lib/branston/db/migrate/20110408162438_remove_is_admin_property_and_add_role_instead.rb', line 2 def self.up remove_column :users, :is_admin add_column :users, :role, :string end |