Sha256: 11008acbefacfe2fcc7e6b96279aa807a29f99cc2b734a4a5ece5c814eb38a7f

Contents?: true

Size: 311 Bytes

Versions: 4

Compression:

Stored size: 311 Bytes

Contents

# encoding: utf-8
class ChatroomCreate<%= table_name.camelize %> < ActiveRecord::Migration
	def change
		create_table(:<%= table_name %>) do |t|
			<%= migration_data -%>

			<% attributes.each do |attribute| -%>	
				t.<%= attribute.type %> :<%= attribute.name %>
			<% end -%>

			t.timestamps
		end
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chatroom-0.1.1 lib/generators/active_record/templates/migration.rb
chatroom-0.1.0 lib/generators/active_record/templates/migration.rb
chatroom-0.0.9 lib/generators/active_record/templates/migration.rb
chatroom-0.0.8 lib/generators/active_record/templates/migration.rb