<%= 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? %> |
<% end %>