Sha256: e24ca8edf19fd93d3ab665c21cf022a15d98f674c6e6762ecaa16d99dac8c559

Contents?: true

Size: 294 Bytes

Versions: 154

Compression:

Stored size: 294 Bytes

Contents

class AddRoutesTable < ActiveRecord::Migration

	def self.up
		create_table :routes do |t|
			t.integer :session_id
			t.string  :subnet
			t.string  :netmask
		end

		remove_column :sessions, :routes
	end

	def self.down
		drop_table :routes

		add_column :sessions, :routes, :string
	end
end

Version data entries

154 entries across 154 versions & 1 rubygems

Version Path
metasploit_data_models-0.22.7 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-0.22.7-java db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-0.22.6 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-0.22.6-java db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-0.22.5 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-0.22.5-java db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-0.22.4 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-0.22.4-java db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-0.22.3 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-0.22.3-java db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-0.22.2 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-0.22.2-java db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-0.22.1 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-0.22.1-java db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-0.21.3 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-0.21.3-java db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-0.21.2 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-0.21.2-java db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-0.21.1 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-0.21.0 db/migrate/20110415175705_add_routes_table.rb