Class: CreateAuthorizations

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/db/migrate/20101028092014_create_authorizations.rb,
lib/generators/vigilante/install/templates/create_authorizations.rb

Class Method Summary collapse

Class Method Details

.downObject



13
14
15
# File 'lib/db/migrate/20101028092014_create_authorizations.rb', line 13

def self.down
  drop_table :authorizations
end

.upObject



2
3
4
5
6
7
8
9
10
11
# File 'lib/db/migrate/20101028092014_create_authorizations.rb', line 2

def self.up
  create_table :authorizations do |t|
    t.integer :operator_id
    t.integer :ability_id
    t.string  :extent
    t.string  :extent_type

    t.timestamps
  end
end