Sha256: df4e54e666d223a9a88e25d0178e6598e004d3bd4e5eec9d39e351565f0721c2

Contents?: true

Size: 399 Bytes

Versions: 44

Compression:

Stored size: 399 Bytes

Contents

class AddListenersTable < ActiveRecord::Migration
	def self.up
		create_table :listeners do |t|
			t.timestamps null: false
			t.integer :workspace_id, :null => false, :default => 1
			t.integer :task_id
			t.boolean :enabled, :default => true
			t.text :owner
			t.text :payload
			t.text :address
			t.integer :port
			t.binary :options
		end
	end
	def self.down
		drop_table :listeners
	end
end

Version data entries

44 entries across 44 versions & 1 rubygems

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