Class: CreateAuthengineTables

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/rails/generators/authengine/templates/migration.rb

Class Method Summary collapse

Class Method Details

.downObject



7
8
9
10
11
12
13
14
15
# File 'lib/rails/generators/authengine/templates/migration.rb', line 7

def self.down
  drop_table :useractions
  drop_table :user_roles
  drop_table :roles
  drop_table :controllers
  drop_table :action_roles
  drop_table :actions
  drop_table :users
end

.upObject



2
3
4
5
# File 'lib/rails/generators/authengine/templates/migration.rb', line 2

def self.up
  SCHEMA_AUTO_INSERTED_HERE
  DATABASE_PREPOPULATE
end