Class: CreateActions

Inherits:
ActiveRecord::Migration
  • Object
show all
Includes:
Six::Dbmanager::Migrate
Defined in:
lib/six-updater-web/db/migrate/20090829165545_create_actions.rb

Class Method Summary collapse

Methods included from Six::Dbmanager::Migrate

included

Class Method Details

.downObject



14
15
16
17
# File 'lib/six-updater-web/db/migrate/20090829165545_create_actions.rb', line 14

def self.down
  drop_table :actions
  six_join(["action", "sixconfig"], :down)
end

.upObject



4
5
6
7
8
9
10
11
12
# File 'lib/six-updater-web/db/migrate/20090829165545_create_actions.rb', line 4

def self.up
  create_table :actions do |t|
    t.string :name
    t.text :tasks

    t.timestamps :lock_version => false
  end
  six_join(["action", "sixconfig"])
end