Class: CreateAppsettings

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

Class Method Summary collapse

Methods included from Six::Dbmanager::Migrate

included

Class Method Details

.downObject



17
18
19
20
# File 'lib/six-updater-web/db/migrate/20090826185930_create_appsettings.rb', line 17

def self.down
  drop_table :appsettings
  six_join(["appsetting", "sixconfig"], :down)
end

.upObject



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/six-updater-web/db/migrate/20090826185930_create_appsettings.rb', line 4

def self.up
  create_table :appsettings do |t|
    t.string :name

    t.string :path
    t.string :exe
    t.string :params

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