Sha256: ac6784d02a19069f5a1e1b6bdff59cded1aad03635275f155af79de87608e30e

Contents?: true

Size: 255 Bytes

Versions: 4

Compression:

Stored size: 255 Bytes

Contents

class Servers < ActiveRecord::Migration
	def up
		create_table :servers do |t|
			t.boolean	:online,	:allow_null => false, :default => true
			
			t.string	:hostname,	:allow_null => false
			
			t.text		:notes
		end
	end

	def down
		#drop table
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
automate-em-0.0.4 db/migrate/20111110075444_servers.rb
automate-em-0.0.3 db/migrate/20111110075444_servers.rb
automate-em-0.0.2 db/migrate/20111110075444_servers.rb
automate-em-0.0.1 db/migrate/20111110075444_servers.rb