Sha256: d249122386af3dec6b7ddc5b8093a3b781dbaa49524983fd7aa8853977df5182

Contents?: true

Size: 563 Bytes

Versions: 44

Compression:

Stored size: 563 Bytes

Contents

class AddHostTags < ActiveRecord::Migration

	def self.up

		create_table :tags do |t|
			t.integer  :user_id
			t.string   :name, :limit => 1024
			t.text     :desc
			t.boolean  :report_summary, :null => false, :default => false
			t.boolean  :report_detail, :null => false, :default => false
			t.boolean  :critical, :null => false, :default => false
			t.timestamps null: false
		end

		create_table :hosts_tags, :id => false do |t|
			t.integer :host_id
			t.integer :tag_id
		end

	end

	def self.down
		drop_table :hosts_tags
		drop_table :tags
	end

end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
metasploit_data_models-3.0.10 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-3.0.9 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-3.0.8 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-3.0.7 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-3.0.6 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-3.0.5 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-2.0.17 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-3.0.4 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-3.0.2 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-3.0.1 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-3.0.0 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-2.0.16 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-2.0.15 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-2.0.14 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-2.0.13 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-2.0.12 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-2.0.11 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-2.0.10 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-2.0.9 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-2.0.8 db/migrate/20110204112800_add_host_tags.rb