" border="0" style="margin-left:2em;"> <% MigrationDefs::ColumnOption::Description.each_key do |key| %> <% end %> <% @columns.each do |col| %> <% end %>
delete Type Name<%= key %>
<%= check_box_tag "[methods][#{@migration_method.name}][funcs][#{@migration_func.name}][columns][" + (col.name.blank? ? 'timestamps' : col.name) + '][delete]', true, false %> <%= type_select "[methods][#{@migration_method.name}][funcs][#{@migration_func.name}][columns][" + (col.name.blank? ? 'timestamps' : col.name) + '][type]', col.type %> <%= text_field_tag "[methods][#{@migration_method.name}][funcs][#{@migration_func.name}][columns][" + (col.name.blank? ? 'timestamps' : col.name) + '][name]', col.name, :readonly => true %> <%= text_field_tag "[methods][#{@migration_method.name}][funcs][#{@migration_func.name}][columns][" + (col.name.blank? ? 'timestamps' : col.name) + '][limit]', col.option.limit if !col.option.nil? %> <%= text_field_tag "[methods][#{@migration_method.name}][funcs][#{@migration_func.name}][columns][" + (col.name.blank? ? 'timestamps' : col.name) + '][default]', col.option.default if !col.option.nil? %> <%= check_box_tag "[methods][#{@migration_method.name}][funcs][#{@migration_func.name}][columns][" + (col.name.blank? ? 'timestamps' : col.name) + '][null]', true, col.option.null if !col.option.nil? %> <%= text_field_tag "[methods][#{@migration_method.name}][funcs][#{@migration_func.name}][columns][" + (col.name.blank? ? 'timestamps' : col.name) + '][precision]', col.option.precision if !col.option.nil? %> <%= text_field_tag "[methods][#{@migration_method.name}][funcs][#{@migration_func.name}][columns][" + (col.name.blank? ? 'timestamps' : col.name) + '][scale]', col.option.scale if !col.option.nil? %>
  " type="button" value="delete_column">

][table] border="0" style="margin-left:2em;"> <% MigrationDefs::ColumnOption::Description.each_key do |key| %> <% end %>
Type Name<%= key %>
<%= type_select "[new_column][#{@migration_method.name}][#{@migration_func.name}][type]" %> <%= text_field_tag "[new_column][#{@migration_method.name}][#{@migration_func.name}][name]" %> <%= text_field_tag "[new_column][#{@migration_method.name}][#{@migration_func.name}][limit]" %> <%= text_field_tag "[new_column][#{@migration_method.name}][#{@migration_func.name}][default]", "''" %> <%= check_box_tag "[new_column][#{@migration_method.name}][#{@migration_func.name}][null]", true, true %> <%= text_field_tag "[new_column][#{@migration_method.name}][#{@migration_func.name}][precision]" %> <%= text_field_tag "[new_column][#{@migration_method.name}][#{@migration_func.name}][scale]" %>
  " type="button" value="add_column">   <%#= button_to_function :add_column, 'addColumn_' + @migration_method.name + '_("_columns_' + @migration_method.name + '_");' %>