Sha256: f8f1e70c57dd496f23f1fe67988bc9a652fcc882e5cd9978460a4c970df1a13a

Contents?: true

Size: 1.1 KB

Versions: 22

Compression:

Stored size: 1.1 KB

Contents

class ExpandInfo < ActiveRecord::Migration[4.2]
	def self.up
		remove_column :events, :info
		change_table :events do |t|
			t.string    :info, :limit => 4096
		end

		remove_column :notes, :data
		change_table :notes do |t|
			t.string    :data, :limit => 4096
		end

		remove_column :vulns, :data
		change_table :vulns do |t|
			t.string    :data, :limit => 4096
		end

		remove_column :hosts, :info
		change_table :hosts do |t|
			t.string    :info, :limit => 4096
		end

		remove_column :services, :info
		change_table :services do |t|
			t.string    :info, :limit => 4096
		end
	end

	def self.down

		remove_column :events, :info
		change_table :events do |t|
			t.string    :info
		end

		remove_column :notes, :data
		change_table :notes do |t|
			t.string    :data, :limit => 1024
		end

		remove_column :hosts, :info
		change_table :hosts do |t|
			t.string    :info, :limit => 1024
		end

		remove_column :vulns, :data
		change_table :hosts do |t|
			t.string    :data, :limit => 1024
		end

		remove_column :services, :info
		change_table :services do |t|
			t.string    :info, :limit => 1024
		end

	end
end

Version data entries

22 entries across 22 versions & 2 rubygems

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