Class: AddNexposeConsolesTable

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
db/migrate/20110630000001_add_nexpose_consoles_table.rb

Class Method Summary collapse

Class Method Details

.downObject



17
18
19
# File 'db/migrate/20110630000001_add_nexpose_consoles_table.rb', line 17

def self.down
	drop_table :nexpose_consoles
end

.upObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'db/migrate/20110630000001_add_nexpose_consoles_table.rb', line 2

def self.up
	create_table :nexpose_consoles do |t|
		t.timestamps
		t.boolean :enabled, :default => true
		t.text :owner
		t.text :address
		t.integer :port, :default => 3780
		t.text :username
		t.text :password
		t.text :status
		t.text :version
		t.text :cert
		t.binary :cached_sites
	end
end