Class: CortexReaver::UserrolesSchema
- Inherits:
-
Sequel::Migration
- Object
- Sequel::Migration
- CortexReaver::UserrolesSchema
- Defined in:
- lib/cortex_reaver/migrations/011_user_roles.rb
Instance Method Summary collapse
Instance Method Details
#down ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/cortex_reaver/migrations/011_user_roles.rb', line 3 def down alter_table :users do drop_column :contributor drop_column :editor drop_column :moderator end end |
#up ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/cortex_reaver/migrations/011_user_roles.rb', line 11 def up alter_table :users do add_column :contributor, :boolean, :default => false add_column :editor, :boolean, :default => false add_column :moderator, :boolean, :default => false end end |