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-3.0.10 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-3.0.9 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-3.0.8 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-3.0.7 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-3.0.6 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-3.0.5 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-2.0.17 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-3.0.4 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-3.0.2 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-3.0.1 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-3.0.0 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-2.0.16 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-2.0.15 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-2.0.14 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-2.0.13 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-2.0.12 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-2.0.11 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-2.0.10 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-2.0.9 db/migrate/20110415175705_add_routes_table.rb
metasploit_data_models-2.0.8 db/migrate/20110415175705_add_routes_table.rb