Sha256: b0481d2764464b42cd2dfd9c2ba9995633a6c72fa549d88e2dc5a34fca3eabc5

Contents?: true

Size: 463 Bytes

Versions: 4

Compression:

Stored size: 463 Bytes

Contents

class CreateControllerHttpServices < ActiveRecord::Migration
	def change
		create_table :controller_http_services do |t|
			
			t.references	:control_system,:allow_null => false
			t.references	:dependency,	:allow_null => false

			t.string	:uri,	:allow_null => false
			
			t.integer	:priority,	:default => 0,	:allow_null => false
			t.string	:custom_name	# projector_left
			
			t.timestamps
		end
		
		add_column		:dependencies, :default_uri, :string
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
automate-em-0.0.4 db/migrate/20111211062846_create_controller_http_services.rb
automate-em-0.0.3 db/migrate/20111211062846_create_controller_http_services.rb
automate-em-0.0.2 db/migrate/20111211062846_create_controller_http_services.rb
automate-em-0.0.1 db/migrate/20111211062846_create_controller_http_services.rb