Sha256: 0aa4dc3bbd7b47977a4e14bf2ea4f4dc1e35031efdcde676afcf1a3a7e6463c5

Contents?: true

Size: 568 Bytes

Versions: 22

Compression:

Stored size: 568 Bytes

Contents

class AddHostTags < ActiveRecord::Migration[4.2]

	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

22 entries across 22 versions & 2 rubygems

Version Path
wg-metasploit_data_models-4.1.4.02 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-6.0.5 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-6.0.4 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-6.0.3 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-6.0.2 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-6.0.1 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-6.0.0 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-5.0.6 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-5.0.5 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-5.0.4 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-5.0.3 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-5.0.2 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-5.0.1 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-5.0.0 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-4.1.4 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-4.1.3 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-4.1.2 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-4.1.1 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-4.1.0 db/migrate/20110204112800_add_host_tags.rb
metasploit_data_models-4.0.2 db/migrate/20110204112800_add_host_tags.rb