Class: AddLoots

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
db/migrate/007_add_loots.rb

Class Method Summary collapse

Class Method Details

.downObject



15
16
17
# File 'db/migrate/007_add_loots.rb', line 15

def self.down
	drop_table :loots
end

.upObject



3
4
5
6
7
8
9
10
11
12
13
# File 'db/migrate/007_add_loots.rb', line 3

def self.up
	create_table :loots do |t|
		t.integer   :workspace_id, :null => false, :default => 1
		t.integer   :host_id
		t.integer   :service_id
		t.string    :ltype, :limit => 512
		t.string    :path, :limit  => 1024
		t.text      :data
		t.timestamps
	end
end